Skip to content

Commit 0a68cd4

Browse files
oschwaldclaude
andcommitted
Use golangci-lint from mise.toml in GitHub Action
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 641b0ec commit 0a68cd4

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
pull_request:
66
schedule:
7-
- cron: "4 10 * * SUN"
7+
- cron: '4 10 * * SUN'
88

99
permissions: {}
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 ./...

0 commit comments

Comments
 (0)