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/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