Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 857 Bytes

File metadata and controls

37 lines (26 loc) · 857 Bytes

generate-actionlint-matcher

This script generates actionlint-matcher.json.

Usage

make .github/actionlint-matcher.json

or directly run the script

node ./scripts/generate-actionlint-matcher/main.js .github/actionlint-matcher.json

Test

node ./scripts/generate-actionlint-matcher/test.js

The test uses test data at ./scripts/generate-actionlint-matcher/test/*.txt. They should be updated when actionlint changes the default error message format. To update them:

make ./scripts/generate-actionlint-matcher/test/escape.txt
make ./scripts/generate-actionlint-matcher/test/no_escape.txt
make ./scripts/generate-actionlint-matcher/test/want.json

or expand glob by your shell:

make ./scripts/generate-actionlint-matcher/test/*