Merge branch 'fromjson' (fix #464) #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Problem Matchers | |
on: | |
push: | |
paths: | |
- 'scripts/generate-actionlint-matcher/*.js' | |
- 'testdata/examples/*.out' | |
- 'testdata/err/*.out' | |
branches: | |
- main | |
tags-ignore: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
matcher-test: | |
name: Test generate-actionlint-matcher | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Update test data | |
run: make ./scripts/generate-actionlint-matcher/test/* SKIP_GO_GENERATE=true | |
- name: Test actionlint-matcher.json | |
run: node ./scripts/generate-actionlint-matcher/test.js | |
- name: Ensure .github/actionlint-matcher.json is up-to-date | |
run: | | |
make .github/actionlint-matcher.json | |
if git diff --quiet; then | |
echo 'OK' | |
else | |
echo 'ERROR! .github/actionlint-matcher.json is outdated. Update it by "make .github/actionlint-matcher.json"' >&2 | |
set -x | |
git diff | |
exit 1 | |
fi |