Skip to content

Commit 8c776b1

Browse files
authored
build: use go 1.23 (#361)
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent fa1ff3b commit 8c776b1

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: go-test
1717
strategy:
1818
matrix:
19-
go-version: [1.22.x, 1.23.x, 1.24.x]
19+
go-version: [1.23.x, 1.24.x]
2020
platform: [ubuntu-latest]
2121
runs-on: ${{ matrix.platform }}
2222
steps:

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This file was copied from the following URL and modified:
2-
# https://github.com/golangci/golangci-lint-action/blob/master/README.md#how-to-use
3-
41
name: golangci-lint
52
on:
63
push:
@@ -22,11 +19,8 @@ jobs:
2219
- uses: actions/checkout@v4
2320
- uses: actions/setup-go@v5
2421
with:
25-
go-version: 1.22.x
26-
cache: false
22+
go-version: 1.23.x
2723
- name: golangci-lint
2824
uses: golangci/golangci-lint-action@v6
2925
with:
30-
args: --timeout=10m
31-
# Only show new issues in a PR but show all issues for pushes
3226
only-new-issues: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency: ${{ github.ref }}
1111
jobs:
1212
create-draft-release:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
outputs:
1517
RELEASE_ID: ${{ steps.create-release.outputs.result }}
1618
steps:
@@ -60,7 +62,7 @@ jobs:
6062
fetch-depth: '0'
6163
- uses: actions/setup-go@v5
6264
with:
63-
go-version: 1.22.x
65+
go-version: 1.23.x
6466
- name: Build binary
6567
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
6668
- name: Upload release asset
@@ -157,6 +159,8 @@ jobs:
157159

158160
finalize-release:
159161
runs-on: ubuntu-latest
162+
permissions:
163+
contents: write
160164
needs: [create-draft-release, build-binaries, build-images]
161165
steps:
162166
- uses: actions/github-script@v7

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/blinklabs-io/cardano-node-api
22

3-
go 1.22.11
3+
go 1.23.6
44

55
require (
66
connectrpc.com/connect v1.18.1

openapi/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/blinklabs-io/cardano-node-api/openapi
22

3-
go 1.22
4-
5-
toolchain go1.22.8
3+
go 1.23.6
64

75
require github.com/stretchr/testify v1.10.0
86

0 commit comments

Comments
 (0)