Skip to content

Commit 581958f

Browse files
committed
ci: upgrade golangci-lint version
disable static analysis of tests files
1 parent 022bb34 commit 581958f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: lint-test
22

33
on:
44
workflow_dispatch:
5-
push:
65
pull_request:
76

87
permissions:
@@ -17,12 +16,13 @@ jobs:
1716
fetch-depth: 0
1817
- uses: actions/setup-go@v5
1918
with:
20-
go-version: "1.24.2"
19+
go-version: "1.24.4"
2120
- run: go mod tidy
2221
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v7
22+
uses: golangci/golangci-lint-action@v8
2423
with:
25-
version: v2.0
24+
version: latest
25+
args: --tests=false
2626
continue-on-error: true
2727

2828
gosec:
@@ -35,7 +35,7 @@ jobs:
3535
fetch-depth: 0
3636
- uses: actions/setup-go@v5
3737
with:
38-
go-version: "1.24.2"
38+
go-version: "1.24.4"
3939
- run: go mod tidy
4040
- name: Run Gosec Security Scanner
4141
uses: securego/gosec@master
@@ -47,9 +47,11 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
5052
- uses: actions/setup-go@v5
5153
with:
52-
go-version: "1.24.2"
54+
go-version: "1.24.4"
5355
- run: go mod tidy
5456
- run: go install gotest.tools/gotestsum@latest
5557
- run: gotestsum --junitfile unit-tests.xml -- -coverprofile=coverage.out -covermode=atomic ./...

0 commit comments

Comments
 (0)