mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
GitHub Actions: Add json problem matcher (#37490)
* GitHub Actions: Add json problem matcher * Create a problem for testing * Revert "Create a problem for testing" This reverts commit d7735e4af39a18cb8d080bfc01e483065bbd06b6.
This commit is contained in:
parent
83b41897f8
commit
c71fcc8cbb
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -393,6 +393,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
|
||||
|
16
.github/workflows/matchers/check-json.json
vendored
Normal file
16
.github/workflows/matchers/check-json.json
vendored
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user