Skip to content

Commit abcd916

Browse files
committed
Go: write test go runtime version in a specific file
1 parent 0bc6934 commit abcd916

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.github/workflows/go-tests-other-os.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
- .github/workflows/go-tests-other-os.yml
88
- .github/actions/**
99
- codeql-workspace.yml
10-
env:
11-
GO_VERSION: '~1.22.0'
1210

1311
permissions:
1412
contents: read
@@ -18,10 +16,10 @@ jobs:
1816
name: Test MacOS
1917
runs-on: macos-latest
2018
steps:
21-
- name: Set up Go ${{ env.GO_VERSION }}
19+
- name: Set up Go
2220
uses: actions/setup-go@v5
2321
with:
24-
go-version: ${{ env.GO_VERSION }}
22+
go-version-file: go/test-runtime-version/go.work
2523
cache: false
2624
id: go
2725

@@ -55,10 +53,10 @@ jobs:
5553
name: Test Windows
5654
runs-on: windows-latest-xl
5755
steps:
58-
- name: Set up Go ${{ env.GO_VERSION }}
56+
- name: Set up Go
5957
uses: actions/setup-go@v5
6058
with:
61-
go-version: ${{ env.GO_VERSION }}
59+
go-version-file: go/test-runtime-version/go.work
6260
cache: false
6361
id: go
6462

.github/workflows/go-tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ on:
1616
- .github/actions/**
1717
- codeql-workspace.yml
1818

19-
env:
20-
GO_VERSION: '~1.22.0'
21-
2219
permissions:
2320
contents: read
2421

@@ -28,10 +25,10 @@ jobs:
2825
name: Test Linux (Ubuntu)
2926
runs-on: ubuntu-latest-xl
3027
steps:
31-
- name: Set up Go ${{ env.GO_VERSION }}
28+
- name: Set up Go
3229
uses: actions/setup-go@v5
3330
with:
34-
go-version: ${{ env.GO_VERSION }}
31+
go-version-file: go/test-runtime-version/go.work
3532
cache: false
3633
id: go
3734

go/ql/test/go.mod

Lines changed: 0 additions & 4 deletions
This file was deleted.

go/test-runtime-version/go.work

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
go 1.22

0 commit comments

Comments
 (0)