Skip to content

Commit

Permalink
chore: Enables GitHub Action linter errors in GitHub (#2440)
Browse files Browse the repository at this point in the history
* TEMPORARY: make action linter fail

* problem matcher

* Revert "TEMPORARY: make action linter fail"

This reverts commit 2ea3cd5.
  • Loading branch information
lantoli authored Jul 18, 2024
1 parent de0ab51 commit 9d5c3ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/actionlint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "actionlint",
"severity": "warning",
"pattern": [
{
"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)* \\[(.+?)\\]$",
"file": 1,
"line": 2,
"column": 3,
"message": 4,
"code": 5
}
]
}
]
}
5 changes: 4 additions & 1 deletion .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
with:
version: v1.59.0 # Also update GOLANGCI_VERSION variable in GNUmakefile when updating this version
- name: actionlint
run: make tools && actionlint -verbose -color
run: |
make tools
echo "::add-matcher::.github/actionlint-matcher.json"
actionlint -color
shell: bash
shellcheck:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9d5c3ee

Please sign in to comment.