File tree Expand file tree Collapse file tree 2 files changed +22
-19
lines changed
Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 88 branches :
99 - master
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 build :
1316 runs-on : ubuntu-latest
1417 strategy :
1518 matrix :
16- go-version : [1.23.x, 1.25.x]
19+ go-version : [ 1.23.x, 1.25.x ]
1720 steps :
18- - name : Setup Go
19- uses : actions/setup-go@v5
20- with :
21- go-version : ${{ matrix.go-version }}
21+ - name : Setup Go
22+ uses : actions/setup-go@v6
23+ with :
24+ go-version : ${{ matrix.go-version }}
25+
26+ - name : Checkout code
27+ uses : actions/checkout@v6
2228
23- - name : Checkout code
24- uses : actions/checkout@v4
29+ - name : Run coverage
30+ run : go test -race ./... -coverprofile=coverage.out -covermode=atomic
2531
26- - name : Run coverage
27- run : go test -race ./... -coverprofile=coverage.out -covermode=atomic
28-
29- - name : Upload coverage to Codecov
30- if : ${{ matrix.go-version == '1.23.x' }}
31- uses : codecov/codecov-action@v4
32- with :
33- token : ${{ secrets.CODECOV_TOKEN }}
32+ - name : Upload coverage to Codecov
33+ if : ${{ matrix.go-version == '1.23.x' }}
34+ uses : codecov/codecov-action@v5
35+ with :
36+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout code
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v6
1919
2020 - name : Get go version from go.mod
2121 run : |
2222 echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
2323
2424 - name : Setup-go
25- uses : actions/setup-go@v5
25+ uses : actions/setup-go@v6
2626 with :
2727 go-version : ${{ env.GO_VERSION }}
2828
2929 - name : Run golangci-lint
30- uses : golangci/golangci-lint-action@v7
30+ uses : golangci/golangci-lint-action@v9
3131 with :
32- version : v2.1.5
32+ version : v2.7.2
You can’t perform that action at this time.
0 commit comments