From 48bb12c60f0ea1bd2ebe170e84b0b605be5ec6be Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Mon, 18 Nov 2024 19:21:36 -0500 Subject: [PATCH] yamllint --- .github/dependabot.yml | 9 +++-- .github/workflows/clojurescript.yml | 3 +- .github/workflows/codeql.yml | 63 ++++++++++++++++------------- .github/workflows/release.yml | 1 + .github/workflows/test.yaml | 5 ++- .travis.yml | 1 + .yamllint.yml | 21 ++++++++++ appveyor.yml | 4 +- 8 files changed, 73 insertions(+), 34 deletions(-) create mode 100644 .yamllint.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 132be37a9..2b92d5a50 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: @@ -5,11 +6,11 @@ version: 2 updates: - - package-ecosystem: "maven" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "maven" # See documentation for possible values + directory: "/" # Location of package manifests schedule: interval: "weekly" - - package-ecosystem: "github-actions" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: "weekly" diff --git a/.github/workflows/clojurescript.yml b/.github/workflows/clojurescript.yml index 0c38fff00..d125d4167 100644 --- a/.github/workflows/clojurescript.yml +++ b/.github/workflows/clojurescript.yml @@ -1,8 +1,9 @@ +--- name: cooljeanius/clojurescript on: push: branches: - - "**/*" + - "**/*" pull_request: jobs: test: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e21e4e159..18b682bdf 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,4 +1,5 @@ -# clojurescript/.github/workflows/codeql.yml: GitHub Actions codeql workflow for clojurescript +--- +# clojurescript/.github/workflows/codeql.yml: GHA CQL workflow for clojurescript # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # @@ -35,7 +36,7 @@ jobs: # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + runs-on: 'ubuntu-latest' timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} permissions: actions: read @@ -45,35 +46,43 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript-typescript' ] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + language: ['javascript-typescript'] + # CodeQL supports the following keywords for 'language': + # 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', + # 'python', 'ruby', 'swift' + # Use 'java-kotlin' to analyze code written in Java, Kotlin, or both + # Use 'javascript-typescript' to analyze code written in JavaScript, + # TypeScript, or both + # Learn more about CodeQL language support at: + # https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a + # config file. + # By default, queries listed here will override any specified in a + # config file. + # Prefix the list here with "+" to use these queries and those in the + # config file. - # For more details on CodeQL's query packs, refer to: - # https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: + # https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # Autobuild attempts to build any compiled languages + # (C/C++, C#, Go, Java, or Swift). + - name: Autobuild + uses: github/codeql-action/autobuild@v3 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91bd1d19c..d68805d7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +--- name: Release on demand on: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 08997e4fd..01250a22e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,3 +1,4 @@ +--- name: Tests on: [push] @@ -51,8 +52,10 @@ jobs: run: ./ci/install_jsc.sh - name: Run tests + shell: bash run: | - WebKit/WebKitBuild/Release/bin/jsc builds/out-adv/core-advanced-test.js | tee test-out.txt + WebKit/WebKitBuild/Release/bin/jsc \ + builds/out-adv/core-advanced-test.js | tee test-out.txt grep -qxF '0 failures, 0 errors.' test-out.txt # Runtime Tests diff --git a/.travis.yml b/.travis.yml index 3efa196ea..35ef94359 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +--- os: linux dist: xenial diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 000000000..50cd464a3 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,21 @@ +--- +# https://yamllint.readthedocs.io/en/stable/configuration.html +extends: default + +rules: + float-values: enable + indentation: + ignore: + - .github/workflows/clojurescript.yml + - .github/workflows/release.yml + # some lines might be really long in this repo, and I don't feel like + # figuring out how to break them up: + line-length: + max: 99 + level: warning + ignore: + - .github/workflows/clojurescript.yml + - .travis.yml + - appveyor.yml + octal-values: enable + truthy: disable diff --git a/appveyor.yml b/appveyor.yml index 551552a52..8b46194b9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,4 @@ +--- image: Visual Studio 2017 environment: @@ -69,7 +70,8 @@ test_script: - cmd: type test-out.txt - cmd: bash -cvx "echo '0 failures, 0 errors.' >> test-out.txt" - cmd: bash -cvx "echo '0 failures, 0 errors.' >> test-out.txt" - # Since tests are currently only run in 2 JavaScript environments, look for exactly 2 counts of "0 failures, 0 errors." + # Since tests are currently only run in 2 JavaScript environments, look for + # exactly 2 counts of "0 failures, 0 errors." - cmd: powershell -noninteractive -noprofile -command if (-not ((sls -Pattern '0 failures, 0 errors.' -SimpleMatch test-out.txt).count -eq 2)) { exit 1 } # Skip the actual build (MSBuild).