Skip to content

Commit 1309cfc

Browse files
committed
refactor: remove GO_VERSION environment variable and use go.mod for versioning
1 parent 940112c commit 1309cfc

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/go-test.yml

Lines changed: 2 additions & 5 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-internal:
1411
runs-on: ubuntu-latest
@@ -24,7 +21,7 @@ jobs:
2421
- name: Set up Go
2522
uses: actions/setup-go@v5
2623
with:
27-
go-version: ${{ env.GO_VERSION }}
24+
go-version-file: go.mod
2825

2926
- name: Run `internal` tests
3027
run: go tool task test:internal
@@ -48,7 +45,7 @@ jobs:
4845
- name: Set up Go
4946
uses: actions/setup-go@v5
5047
with:
51-
go-version: ${{ env.GO_VERSION }}
48+
go-version-file: go.mod
5249

5350
- name: Run `pkg` tests
5451
run: go tool task test:pkg

.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: "arduino-app-cli"
1110
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
1211
GITHUB_USERNAME: ArduinoBot
@@ -38,7 +37,7 @@ jobs:
3837
- name: Set up Go
3938
uses: actions/setup-go@v5
4039
with:
41-
go-version: ${{ env.GO_VERSION }}
40+
go-version-file: go.mod
4241

4342
- name: Build deb
4443
run: |

0 commit comments

Comments
 (0)