Skip to content

Commit a64949d

Browse files
authored
fix: remove hardcoded Go version and use go.mod for versioning (#9)
1 parent 4abad9c commit a64949d

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
@@ -19,7 +16,7 @@ jobs:
1916
- name: Set up Go
2017
uses: actions/setup-go@v5
2118
with:
22-
go-version: ${{ env.GO_VERSION }}
19+
go-version-file: go.mod
2320

2421
- name: Run tests
2522
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-flasher-cli"
1110
DIST_DIR: build
1211

@@ -50,7 +49,7 @@ jobs:
5049
- name: Set up Go
5150
uses: actions/setup-go@v5
5251
with:
53-
go-version: ${{ env.GO_VERSION }}
52+
go-version-file: go.mod
5453

5554
- name: Build Binary
5655
run: go tool task build

0 commit comments

Comments
 (0)