Skip to content

Commit 3936ebf

Browse files
mvdanlu4p
authored andcommitted
update to Go 1.24.0 and test with it on CI as well
1 parent 2adfc43 commit 3936ebf

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
test:
2626
strategy:
2727
matrix:
28-
go-version: [1.23.x]
28+
go-version: [1.23.x, 1.24.x]
2929
os: [ubuntu-latest, macos-latest, windows-latest]
3030
runs-on: ${{ matrix.os }}
3131
steps:
@@ -53,22 +53,21 @@ jobs:
5353
# Static checks from this point forward. Only run on one Go version and on
5454
# linux, since it's the fastest platform, and the tools behave the same.
5555
- name: Test third-party project builds
56-
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
56+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
5757
run: |
5858
go install
5959
./scripts/check-third-party.sh
60-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
60+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
6161
run: ./scripts/crlf-test.sh
62-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
62+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
6363
run: diff <(echo -n) <(gofmt -d .)
64-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
64+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
6565
run: go vet ./...
66-
# TODO: staticcheck temporarily disabled as it was built with go1.23.4
67-
# - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
68-
# uses: dominikh/staticcheck-action@v1
69-
# with:
70-
# version: "2024.1.1"
71-
# install-go: false
66+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
67+
uses: dominikh/staticcheck-action@v1
68+
with:
69+
version: "2025.1"
70+
install-go: false
7271

7372
# We don't care about GOARCH=386 particularly, hence -short,
7473
# but it helps ensure we support 32-bit hosts and targets well.
@@ -82,6 +81,6 @@ jobs:
8281
- uses: actions/checkout@v4
8382
- uses: actions/setup-go@v5
8483
with:
85-
go-version: 1.23.x
84+
go-version: 1.24.x
8685
cache: false
8786
- run: go test -short ./...

go_std_tables.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/gen_go_std_tables.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)