Skip to content

Commit 218e545

Browse files
committed
chore: remove hardcoded Go version and use go.mod for versioning in workflows
1 parent 43568d6 commit 218e545

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/go-test.yml

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

9-
env:
10-
GO_VERSION: "1.25.1"
119

1210
jobs:
1311
go-test:
@@ -19,7 +17,7 @@ jobs:
1917
- name: Set up Go
2018
uses: actions/setup-go@v5
2119
with:
22-
go-version: ${{ env.GO_VERSION }}
20+
go-version-file: go.mod
2321

2422
- name: Run tests
2523
run: go tool 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
- "[0-9]+.[0-9]+.[0-9]+*"
77

88
env:
9-
GO_VERSION: "1.25.1"
109
PROJECT_NAME: "arduino-router"
1110
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
1211
GITHUB_USERNAME: ArduinoBot
@@ -34,7 +33,7 @@ jobs:
3433
- name: Set up Go
3534
uses: actions/setup-go@v5
3635
with:
37-
go-version: ${{ env.GO_VERSION }}
36+
go-version-file: go.mod
3837

3938
- name: Build deb
4039
run: |

0 commit comments

Comments
 (0)