Skip to content

Commit 5572f07

Browse files
authored
Fix CI workflow to use go-version-file instead of hardcoded Go version (#121)
1 parent e39f792 commit 5572f07

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test-integration.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: '1.21'
20+
go-version-file: 'go.mod'
21+
check-latest: true
2122
cache: true
2223

2324
- name: Install Temporal CLI
@@ -70,7 +71,8 @@ jobs:
7071
- name: Set up Go
7172
uses: actions/setup-go@v5
7273
with:
73-
go-version: '1.21'
74+
go-version-file: 'go.mod'
75+
check-latest: true
7476
cache: true
7577

7678
- name: Download dependencies
@@ -100,11 +102,12 @@ jobs:
100102
- name: Set up Go
101103
uses: actions/setup-go@v5
102104
with:
103-
go-version: '1.21'
105+
go-version-file: 'go.mod'
106+
check-latest: true
104107
cache: true
105108

106109
- name: Download dependencies
107110
run: go mod download
108111

109112
- name: Run go vet
110-
run: go vet ./...
113+
run: go vet ./...

0 commit comments

Comments
 (0)