Skip to content

Commit 7f2ab53

Browse files
authored
ci: update to minimum go 1.22 (#266)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 44a5171 commit 7f2ab53

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/go-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ jobs:
1313
name: go-test
1414
strategy:
1515
matrix:
16-
go-version: [1.21.x, 1.22.x]
17-
# XXX: is it actually useful to run unit tests on macOS?
18-
platform: [ubuntu-latest, macos-latest]
16+
go-version: [1.22.x, 1.23.x]
17+
platform: [ubuntu-latest]
1918
runs-on: ${{ matrix.platform }}
2019
steps:
2120
- uses: actions/checkout@v4

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.21.x
25+
go-version: 1.22.x
2626
cache: false
2727
- name: golangci-lint
2828
uses: golangci/golangci-lint-action@v6
2929
with:
30-
version: v1.54 # current version at time of commit
3130
args: --timeout=10m
3231
# Only show new issues in a PR but show all issues for pushes
3332
only-new-issues: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- uses: actions/setup-go@v5
5252
with:
53-
go-version: 1.21.x
53+
go-version: 1.22.x
5454
- name: Build binary
5555
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
5656
- name: Upload release asset

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/blinklabs-io/adder
22

3-
go 1.21
3+
go 1.22
44

5-
toolchain go1.21.6
5+
toolchain go1.22.8
66

77
require (
88
github.com/SundaeSwap-finance/kugo v1.0.5

0 commit comments

Comments
 (0)