Skip to content

Commit ceb9b6f

Browse files
committed
Remove hardcoded Go version and use go.mod for versioning in workflows
1 parent e7effbb commit ceb9b6f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/go-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
pull_request:
77
branches: [main]
88

9-
env:
10-
GO_VERSION: "1.25.1"
11-
129
jobs:
1310
go-test:
1411
runs-on: ubuntu-latest
@@ -25,7 +22,7 @@ jobs:
2522
- name: Set up Go
2623
uses: actions/setup-go@v5
2724
with:
28-
go-version: ${{ env.GO_VERSION }}
25+
go-version-file: go.mod
2926

3027
- name: Run tests
3128
run: task test

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- "v[0-9]+.[0-9]+.[0-9]+*"
77

88
env:
9-
GO_VERSION: "1.25.1"
109
PROJECT_NAME: "releaser"
1110
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
1211
GITHUB_USERNAME: ArduinoBot
@@ -32,7 +31,7 @@ jobs:
3231
- name: Set up Go
3332
uses: actions/setup-go@v5
3433
with:
35-
go-version: ${{ env.GO_VERSION }}
34+
go-version-file: go.mod
3635

3736
- name: Build Binary
3837
env:

0 commit comments

Comments
 (0)