From 137c9cd96f6741b397eb4233a7e0924687df1697 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Wed, 14 Aug 2024 14:42:40 -0400 Subject: [PATCH] apd: add go 1.23 testing to CI This commit adds a test variant for go 1.23. --- .github/workflows/go.yml | 7 ++++--- bigint_go1.15_test.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6ff073a..db2bc74 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,6 +27,7 @@ jobs: - '1.20' - '1.21' - '1.22' + - '1.23' steps: - uses: actions/checkout@v2 @@ -62,10 +63,10 @@ jobs: run: go vet -unsafeptr=false ./... - name: 'Staticcheck' - # staticcheck requires go1.19. - if: ${{ matrix.arch == 'x64' && matrix.go >= '1.19' }} + # staticcheck requires go1.22. + if: ${{ matrix.arch == 'x64' && matrix.go >= '1.22' }} run: | - go install honnef.co/go/tools/cmd/staticcheck@v0.4.3 + go install honnef.co/go/tools/cmd/staticcheck@v0.5.0 staticcheck ./... - name: 'GCAssert' diff --git a/bigint_go1.15_test.go b/bigint_go1.15_test.go index fd04115..83a16bf 100644 --- a/bigint_go1.15_test.go +++ b/bigint_go1.15_test.go @@ -65,7 +65,7 @@ func TestBigIntFillBytes(t *testing.T) { "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", } { t.Run(n, func(t *testing.T) { - t.Logf(n) + t.Log(n) x, ok := new(BigInt).SetString(n, 0) if !ok { panic("invalid test entry")