Add first step for a Home Assistant problem matcher (#31)
This commit is contained in:
@@ -88,6 +88,11 @@ runs:
|
||||
|
||||
docker pull -q "homeassistant/home-assistant:${version}"
|
||||
|
||||
- name: 🏗 Register Home Assistant problem matcher
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::add-matcher::matcher.json"
|
||||
|
||||
- name: 🚀 Run Home Assistant Configuration Check
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "homeassistant-warnings",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(WARNING):(.*)$",
|
||||
"severity": 1,
|
||||
"message": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"owner": "homeassistant-invalid-config",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "(Invalid config for .*) \\(See (.*)(?::|, line )(\\d|\\?)\\)",
|
||||
"file": 2,
|
||||
"line": 3,
|
||||
"message": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user