Skip to content

Commit 9d5c3ee

Browse files
authored
chore: Enables GitHub Action linter errors in GitHub (#2440)
* TEMPORARY: make action linter fail * problem matcher * Revert "TEMPORARY: make action linter fail" This reverts commit 2ea3cd5.
1 parent de0ab51 commit 9d5c3ee

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/actionlint-matcher.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "actionlint",
5+
"severity": "warning",
6+
"pattern": [
7+
{
8+
"regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"message": 4,
13+
"code": 5
14+
}
15+
]
16+
}
17+
]
18+
}

.github/workflows/code-health.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ jobs:
5151
with:
5252
version: v1.59.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
5353
- name: actionlint
54-
run: make tools && actionlint -verbose -color
54+
run: |
55+
make tools
56+
echo "::add-matcher::.github/actionlint-matcher.json"
57+
actionlint -color
5558
shell: bash
5659
shellcheck:
5760
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)