Skip to content

Commit

Permalink
Add first step for a Home Assistant problem matcher (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jul 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 706b504 commit 0e76be6
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -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: |
25 changes: 25 additions & 0 deletions matcher.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}

0 comments on commit 0e76be6

Please sign in to comment.