Skip to content

Commit e8e8541

Browse files
loginxcursoragent
andcommitted
fix(ci): align setup-go with go.mod version
Use go-version-file so CI always matches each branch's go directive. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 689b898 commit e8e8541

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.21'
23+
go-version-file: 'go.mod'
2424
- name: Run unit tests
2525
run: go test ./...
2626
- name: Run BDD tests
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Go
4747
uses: actions/setup-go@v5
4848
with:
49-
go-version: '1.21'
49+
go-version-file: 'go.mod'
5050

5151
- name: Determine version
5252
id: version
@@ -109,7 +109,7 @@ jobs:
109109
- name: Set up Go (for preseed tool)
110110
uses: actions/setup-go@v5
111111
with:
112-
go-version: '1.21'
112+
go-version-file: 'go.mod'
113113

114114
- name: Generate changelog (for stable releases)
115115
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)