From 958e87afbfaf5f517493c56da121e35577ad27b3 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 21 Aug 2024 12:18:12 -0400 Subject: [PATCH] ci: use go 1.22 for tests and builds (#233) Signed-off-by: Chris Gianelloni --- .github/workflows/go-test.yml | 5 ++--- .github/workflows/golangci-lint.yml | 3 +-- .github/workflows/publish.yml | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index f4ac486..863da56 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -13,9 +13,8 @@ jobs: name: go-test strategy: matrix: - go-version: [1.21.x, 1.22.x] - # XXX: is it actually useful to run unit tests on macOS? - platform: [ubuntu-latest, macos-latest] + go-version: [1.22.x, 1.23.x] + platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 136a976..97645e1 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -22,12 +22,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.54 # current version at time of commit args: --timeout=10m # Only show new issues in a PR but show all issues for pushes only-new-issues: ${{ github.event_name == 'pull_request' && 'true' || 'false' }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13857ab..2310eb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,7 +50,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Build binary run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build - name: Upload release asset