mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
GitHub Actions: Add hadolint problem matcher (#37494)
This commit is contained in:
parent
5ba38e5053
commit
c630037f04
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@ -207,6 +207,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- name: Register hadolint problem matcher
|
||||||
|
run: |
|
||||||
|
echo "::add-matcher::.github/workflows/matchers/hadolint.json"
|
||||||
- name: Check Dockerfile
|
- name: Check Dockerfile
|
||||||
uses: docker://hadolint/hadolint:v1.18.0
|
uses: docker://hadolint/hadolint:v1.18.0
|
||||||
with:
|
with:
|
||||||
|
16
.github/workflows/matchers/hadolint.json
vendored
Normal file
16
.github/workflows/matchers/hadolint.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "hadolint",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^(.+):(\\d+)\\s+((DL\\d{4}).+)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"message": 3,
|
||||||
|
"code": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user