GitHub Actions: Add json problem matcher

This commit is contained in:
Franck Nijhof
2020-07-04 22:28:00 +02:00
parent 95d980da4a
commit 8ff99435b9
2 changed files with 19 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "check-json",
"pattern": [
{
"regexp": "^(.+):\\s(.+\\sline\\s(\\d+)\\scolumn\\s(\\d+).+)$",
"file": 1,
"message": 2,
"line": 3,
"column": 4
}
]
}
]
}