From 41de7240dc56e9995732dc2ae5ab7c61332e86e6 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Wed, 25 Mar 2026 17:27:40 +0000 Subject: [PATCH 1/5] Add workflow to run tool "actionlint" --- .github/matchers/actionlint.json | 17 +++++++++++++++ .github/workflows/github-test.yml | 35 +++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/matchers/actionlint.json create mode 100644 .github/workflows/github-test.yml diff --git a/.github/matchers/actionlint.json b/.github/matchers/actionlint.json new file mode 100644 index 00000000000..4613e1617bf --- /dev/null +++ b/.github/matchers/actionlint.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "actionlint", + "pattern": [ + { + "regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$", + "file": 1, + "line": 2, + "column": 3, + "message": 4, + "code": 5 + } + ] + } + ] +} diff --git a/.github/workflows/github-test.yml b/.github/workflows/github-test.yml new file mode 100644 index 00000000000..94b83cdf0a7 --- /dev/null +++ b/.github/workflows/github-test.yml @@ -0,0 +1,35 @@ +name: GitHub Actions - Test + +on: + push: + branches: + - main + paths: + - .github/** + pull_request: + paths: + - .github/** + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + sparse-checkout: | + .github + + # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json + - name: Add ActionLint Problem Matcher + run: echo "::add-matcher::.github/matchers/actionlint.json" + + - name: Lint workflows + uses: docker://rhysd/actionlint:1.7.11 + with: + args: -color -verbose From 9810c4eda9c834a567baac267e0784a1cfcdb533 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Wed, 25 Mar 2026 18:23:21 +0000 Subject: [PATCH 2/5] empty From 7f3d4d6324a97dc18329eb6478442713ffb7b7e5 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Fri, 27 Mar 2026 09:57:00 -0700 Subject: [PATCH 3/5] Apply suggestions from code review Co-authored-by: Timothee Guerin --- .github/workflows/github-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-test.yml b/.github/workflows/github-test.yml index 94b83cdf0a7..272e39efead 100644 --- a/.github/workflows/github-test.yml +++ b/.github/workflows/github-test.yml @@ -25,6 +25,7 @@ jobs: sparse-checkout: | .github + # cspell:ignore rhysd # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json - name: Add ActionLint Problem Matcher run: echo "::add-matcher::.github/matchers/actionlint.json" From 262e376cb10cff7f07b1b8e024f72da8ab40f968 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Fri, 27 Mar 2026 10:02:21 -0700 Subject: [PATCH 4/5] Update github-test.yml --- .github/workflows/github-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-test.yml b/.github/workflows/github-test.yml index 272e39efead..a96b3f71889 100644 --- a/.github/workflows/github-test.yml +++ b/.github/workflows/github-test.yml @@ -25,7 +25,7 @@ jobs: sparse-checkout: | .github - # cspell:ignore rhysd + # cspell:ignore rhysd # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json - name: Add ActionLint Problem Matcher run: echo "::add-matcher::.github/matchers/actionlint.json" From 8cd6e8c89cb65d9701385db02c8c09c9480006c8 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 27 Mar 2026 17:38:40 +0000 Subject: [PATCH 5/5] move check to consistency/lint --- .github/workflows/consistency.yml | 10 +++++++++ .github/workflows/github-test.yml | 36 ------------------------------- 2 files changed, 10 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/github-test.yml diff --git a/.github/workflows/consistency.yml b/.github/workflows/consistency.yml index dc2c589c2b8..40081564375 100644 --- a/.github/workflows/consistency.yml +++ b/.github/workflows/consistency.yml @@ -106,6 +106,16 @@ jobs: - run: pnpm run lint name: Lint + # cspell:ignore rhysd + # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json + - run: echo "::add-matcher::.github/matchers/actionlint.json" + name: Add actionlint problem matcher + + - uses: docker://rhysd/actionlint:1.7.11 + name: Lint workflows + with: + args: -color -verbose + # Check that all dependencies use the pnpm catalog version-consistency: name: Versions consistency diff --git a/.github/workflows/github-test.yml b/.github/workflows/github-test.yml deleted file mode 100644 index a96b3f71889..00000000000 --- a/.github/workflows/github-test.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: GitHub Actions - Test - -on: - push: - branches: - - main - paths: - - .github/** - pull_request: - paths: - - .github/** - workflow_dispatch: - -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - sparse-checkout: | - .github - - # cspell:ignore rhysd - # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json - - name: Add ActionLint Problem Matcher - run: echo "::add-matcher::.github/matchers/actionlint.json" - - - name: Lint workflows - uses: docker://rhysd/actionlint:1.7.11 - with: - args: -color -verbose