File tree Expand file tree Collapse file tree 1 file changed +30
-5
lines changed
Expand file tree Collapse file tree 1 file changed +30
-5
lines changed Original file line number Diff line number Diff line change 44 push :
55 pull_request :
66 schedule :
7- - cron : " 4 10 * * SUN"
7+ - cron : ' 4 10 * * SUN'
88
99permissions : {}
1010
@@ -13,10 +13,35 @@ jobs:
1313 name : lint
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1717 with :
1818 persist-credentials : false
19- - name : golangci-lint
20- uses : golangci/golangci-lint- action@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
19+ - name : Setup mise
20+ uses : jdx/mise- action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
2121 with :
22- version : latest
22+ cache : true
23+ - name : Verify golangci-lint config
24+ run : golangci-lint config verify
25+ - name : golangci-lint
26+ run : |
27+ cat <<'MATCHER' > /tmp/golangci-lint-problem-matcher.json
28+ {
29+ "problemMatcher": [
30+ {
31+ "owner": "golangci-lint",
32+ "severity": "error",
33+ "pattern": [
34+ {
35+ "regexp": "^([^:]+):(\\d+):(?:(\\d+):)?\\s+(.+ \\(.+\\))$",
36+ "file": 1,
37+ "line": 2,
38+ "column": 3,
39+ "message": 4
40+ }
41+ ]
42+ }
43+ ]
44+ }
45+ MATCHER
46+ echo "::add-matcher::/tmp/golangci-lint-problem-matcher.json"
47+ golangci-lint run ./...
You can’t perform that action at this time.
0 commit comments