From 3787134f76a035739a99f5713c6ceca614c93c50 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Mon, 28 Oct 2024 18:05:12 -0400 Subject: [PATCH] ci: update to minimum go 1.22 Signed-off-by: Chris Gianelloni --- .github/workflows/go-test.yml | 5 ++--- .github/workflows/golangci-lint.yml | 3 +-- .github/workflows/publish.yml | 2 +- go.mod | 4 ++-- 4 files changed, 6 insertions(+), 8 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 d357718..967a4e4 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 diff --git a/go.mod b/go.mod index fc789e8..551c07f 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/blinklabs-io/adder -go 1.21 +go 1.22 -toolchain go1.21.6 +toolchain go1.22.8 require ( github.com/SundaeSwap-finance/kugo v1.0.5