Since GitHub Actions are functionally very similar to VS Code's problem matchers (outside of some exceptions), we can use VS Code locally to quickly test the matcher patterns.
- Make sure VS Code
.vscode/tasks.json
file is in sync with actual problem matchers# Run helper script to setup VS Code tasks npm run setup-tasks
- Run task in VS Code using the
Tasks: Run Task
command from the command palette
GitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.
Actions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.
Run package
npm run package
Since the packaged index.js is run from the dist folder, make sure to commit its contents.
git add dist