1
0
Fork 0

troubleshooting problem matchers (#341)

pull/342/head
eric sciple 2020-02-12 14:59:01 -05:00 committed by GitHub
parent 2dcdf049a8
commit 9cfb1604bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -115,3 +115,26 @@ Some of the starter actions are already using problem matchers, for example:
- [setup-python](https://github.com/actions/setup-python/tree/master/.github) - [setup-python](https://github.com/actions/setup-python/tree/master/.github)
- [setup-go](https://github.com/actions/setup-go/tree/master/.github) - [setup-go](https://github.com/actions/setup-go/tree/master/.github)
- [setup-dotnet](https://github.com/actions/setup-dotnet/tree/master/.github) - [setup-dotnet](https://github.com/actions/setup-dotnet/tree/master/.github)
## Troubleshooting
### Regular expression not matching
Use ECMAScript regular expression syntax when testing patterns.
### File property getting dropped
[Enable debug logging](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run#enabling-debug-logging) to determine why the file is getting dropped.
This usually happens when the file does not exist or is not under the workflow repo.
### Adding from a Docker container action
The matcher config file must first be copied to a volume that is accessible from the runner.
For example:
```sh
cp /eslint-compact.json "$HOME/"
echo "::add-matcher::$HOME/eslint-compact.json
```