GitHub Actions: Add check executables problem matcher

This commit is contained in:
Franck Nijhof
2020-07-04 22:15:42 +02:00
parent 95d980da4a
commit 6816b89b8f
2 changed files with 17 additions and 0 deletions

View File

@@ -255,6 +255,9 @@ jobs:
run: |
echo "Failed to restore Python virtual environment from cache"
exit 1
- name: Register check executables problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/check-executables-have-shebangs.json"
- name: Run executables check
run: |
. venv/bin/activate

View File

@@ -0,0 +1,14 @@
{
"problemMatcher": [
{
"owner": "check-executables-have-shebangs",
"pattern": [
{
"regexp": "^(.+):\\s(.+)$",
"file": 1,
"message": 2
}
]
}
]
}