2 parents ac3c3b8 + 9a8e669 commit 2416a02Copy full SHA for 2416a02
1 file changed
.github/workflows/golangci-lint.yml
@@ -12,11 +12,20 @@ jobs:
12
name: lint
13
runs-on: ubuntu-latest
14
steps:
15
- - uses: actions/checkout@v4
16
- - uses: actions/setup-go@v5
+ - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
+ - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
17
with:
18
go-version: '1.24'
19
+
20
+ - name: check go mod tidy
21
+ run: |
22
+ go mod tidy
23
+ if [ -n "$(git status --porcelain=v2)" ]; then
24
+ echo 'You need to run `go mod tidy`' >&2
25
+ exit 1
26
+ fi
27
28
- name: golangci-lint
- uses: golangci/golangci-lint-action@v8
29
+ uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
30
- version: v2.1
31
+ version: v2.8.0
0 commit comments