Skip to content

Commit ac3be24

Browse files
committed
fix CI workflow caching by reordering checkout and setup-go steps
- move checkout step before setup-go to enable proper Go module caching - update actions/checkout to v4 and actions/setup-go to v5 - update golangci-lint-action to v7 with version v2.6
1 parent 494ae2a commit ac3be24

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: set up go 1.23
15-
uses: actions/setup-go@v3
14+
- name: checkout
15+
uses: actions/checkout@v4
16+
17+
- name: set up go
18+
uses: actions/setup-go@v5
1619
with:
1720
go-version: "1.23"
1821
id: go
1922

20-
- name: checkout
21-
uses: actions/checkout@v3
22-
2323
- name: build and test
2424
run: |
2525
go get -v
@@ -30,12 +30,12 @@ jobs:
3030
- name: golangci-lint
3131
uses: golangci/golangci-lint-action@v7
3232
with:
33-
version: v2.1.6
33+
version: v2.6
3434

35-
- name: install goveralls
35+
- name: install goveralls
3636
run: go install github.com/mattn/goveralls@latest
3737

3838
- name: submit coverage
3939
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
4040
env:
41-
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)