Skip to content

Commit 93cc8e6

Browse files
committed
Upgrade to Go 1.25; bump github actions
- Update the toolchain to Go 1.25 - Bump action versions in the test workflow due to node 20 warning - Remove stale .gohci.yml - Explicitly codecov files that the action now leaves behind.
1 parent 72023fc commit 93cc8e6

4 files changed

Lines changed: 17 additions & 647 deletions

File tree

.github/workflows/test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
- name: Turn off git core.autocrlf
3636
if: matrix.os == 'windows-latest'
3737
run: git config --global core.autocrlf false
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939
with:
4040
fetch-depth: 2
41-
- uses: actions/setup-go@v5
41+
- uses: actions/setup-go@v6
4242
with:
4343
go-version-file: go.mod
4444
- name: 'go install necessary tools'
@@ -49,14 +49,17 @@ jobs:
4949
if: always()
5050
run: go test -timeout=120s -covermode=count -coverprofile coverage.txt -bench=. -benchtime=1x ./...
5151
# Don't send code coverage if anything failed to reduce spam.
52-
- uses: codecov/codecov-action@v4
52+
- uses: codecov/codecov-action@v6
5353
with:
5454
token: ${{secrets.CODECOV_TOKEN}}
5555
- name: 'Cleanup'
5656
if: always()
5757
run: rm coverage.txt
5858
- name: 'Check: go test -race'
5959
run: go test -timeout=120s -race -bench=. -benchtime=1x ./...
60+
# codecov leaves junk behind, remove that first.
61+
- run: rm -f codecov codecov.SHA256SUM codecov.SHA256SUM.sig codecov.exe.SHA256SUM codecov.exe.SHA256SUM.sig
62+
if: always()
6063
- name: 'Check: benchmark 📈'
6164
run: ba -against HEAD~1
6265
- name: 'Check: go test -short (CGO_ENABLED=0)'
@@ -105,8 +108,8 @@ jobs:
105108
- name: Turn off git core.autocrlf
106109
if: matrix.os == 'windows-latest'
107110
run: git config --global core.autocrlf false
108-
- uses: actions/checkout@v4
109-
- uses: actions/setup-go@v5
111+
- uses: actions/checkout@v6
112+
- uses: actions/setup-go@v6
110113
with:
111114
go-version-file: go.mod
112115
- name: 'go install necessary tools'
@@ -264,15 +267,15 @@ jobs:
264267
permissions:
265268
security-events: write
266269
steps:
267-
- uses: actions/checkout@v4
268-
- uses: actions/setup-go@v5
270+
- uses: actions/checkout@v6
271+
- uses: actions/setup-go@v6
269272
with:
270273
go-version-file: go.mod
271274
- name: Initialize CodeQL
272-
uses: github/codeql-action/init@v3
275+
uses: github/codeql-action/init@v4
273276
with:
274277
languages: go
275278
- name: Autobuild
276-
uses: github/codeql-action/autobuild@v3
279+
uses: github/codeql-action/autobuild@v4
277280
- name: Perform CodeQL Analysis
278-
uses: github/codeql-action/analyze@v3
281+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)