Skip to content

Latest commit

 

History

History
 
 

generate-actionlint-matcher

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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