File tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ name: linter
2
2
on : [push, pull_request]
3
3
4
4
concurrency :
5
- group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
5
+ group : " ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
6
6
cancel-in-progress : true
7
7
8
8
jobs :
9
9
lint :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - uses : actions/checkout@v4
14
- - name : golangci-lint
15
- uses : golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6 .0.1
16
- with :
17
- version : v1.52 .2
13
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
+ - name : golangci-lint
15
+ uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7 .0.0
16
+ with :
17
+ version : v2.1 .2
Original file line number Diff line number Diff line change 9
9
- master
10
10
11
11
concurrency :
12
- group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
12
+ group : " ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
13
13
cancel-in-progress : true
14
14
15
15
jobs :
@@ -26,14 +26,14 @@ jobs:
26
26
runs-on : ${{ matrix.platform }}
27
27
28
28
steps :
29
- - uses : actions/checkout@v4
30
- - uses : actions/setup-go@v5
31
- with :
32
- go-version : ${{ matrix.go-version }}
29
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
31
+ with :
32
+ go-version : ${{ matrix.go-version }}
33
33
34
- - name : Run go test
35
- run : go test -v -race -coverprofile coverage.txt -covermode atomic ./...
34
+ - name : Run go test
35
+ run : go test -v -race -coverprofile coverage.txt -covermode atomic ./...
36
36
37
- - name : Upload coverage to Codecov
38
- if : ${{ matrix.update-coverage }}
39
- uses : codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
37
+ - name : Upload coverage to Codecov
38
+ if : ${{ matrix.update-coverage }}
39
+ uses : codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
linters :
2
3
enable :
3
4
- dogsled
4
5
- dupl
5
- - gofmt
6
- - goimports
7
6
- gosec
8
7
- misspell
9
8
- nakedret
10
- - stylecheck
9
+ - staticcheck
11
10
- unconvert
12
11
- unparam
13
12
- whitespace
13
+ formatters :
14
+ enable :
15
+ - gofmt
16
+ - goimports
You can’t perform that action at this time.
0 commit comments