Skip to content

Commit a68a5ee

Browse files
authored
ci: Use Go version from go.mod (#214)
1 parent d1a1862 commit a68a5ee

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
branches: [ '*' ]
88
workflow_dispatch:
99

10-
env:
11-
GO_VERSION: 1.22.x
12-
1310
jobs:
1411

1512
lint:
@@ -22,7 +19,7 @@ jobs:
2219
- uses: actions/setup-go@v5
2320
name: Set up Go
2421
with:
25-
go-version: ${{ env.GO_VERSION }}
22+
go-version-file: go.mod
2623
cache: false
2724
- uses: golangci/golangci-lint-action@v6
2825
name: Install golangci-lint
@@ -43,7 +40,7 @@ jobs:
4340
- name: Set up Go
4441
uses: actions/setup-go@v5
4542
with:
46-
go-version: ${{ env.GO_VERSION }}
43+
go-version-file: go.mod
4744
cache: true
4845
- name: Build tmux-fastcopy
4946
run: make build
@@ -67,7 +64,7 @@ jobs:
6764
- name: Set up Go
6865
uses: actions/setup-go@v5
6966
with:
70-
go-version: ${{ env.GO_VERSION }}
67+
go-version-file: go.mod
7168
cache: true
7269

7370
- name: Checkout Tmux

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Setup Go
16-
uses: actions/setup-go@v5
17-
with:
18-
go-version: 1.22.x
19-
cache: true
20-
2115
- name: Checkout
2216
uses: actions/checkout@v4
2317
with:
2418
fetch-depth: 0
2519

20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: go.mod
24+
cache: true
25+
2626
- name: Install parse-changelog
2727
uses: taiki-e/install-action@v2
2828
with:

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/abhinav/tmux-fastcopy
22

3-
go 1.23.4
4-
5-
toolchain go1.23.5
3+
go 1.23.5
64

75
require (
86
github.com/benbjohnson/clock v1.3.5

integration/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/abhinav/tmux-fastcopy/integration
22

3-
go 1.23.4
4-
5-
toolchain go1.23.5
3+
go 1.23.5
64

75
require (
86
github.com/abhinav/tmux-fastcopy v0.14.1

0 commit comments

Comments
 (0)