GitHub Actions: Add yamllint problem matcher

This commit is contained in:
Franck Nijhof
2020-07-04 16:02:38 +02:00
parent ffcdd85117
commit ed6565fce1
2 changed files with 25 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,22 @@
{
"problemMatcher": [
{
"owner": "yamllint",
"pattern": [
{
"regexp": "^(.*\\.ya?ml)$",
"file": 1
},
{
"regexp": "^\\s{2}(\\d+):(\\d+)\\s+(error|warning)\\s+(.*?)\\s+\\((.*)\\)$",
"line": 1,
"column": 2,
"severity": 3,
"message": 4,
"code": 5,
"loop": true
}
]
}
]
}