Go: write test go runtime version in a specific file

This commit is contained in:
Paolo Tranquilli
2024-05-02 16:08:17 +02:00
parent 0bc6934bfc
commit abcd9165b4
4 changed files with 7 additions and 15 deletions

View File

@@ -7,8 +7,6 @@ on:
- .github/workflows/go-tests-other-os.yml
- .github/actions/**
- codeql-workspace.yml
env:
GO_VERSION: '~1.22.0'
permissions:
contents: read
@@ -18,10 +16,10 @@ jobs:
name: Test MacOS
runs-on: macos-latest
steps:
- name: Set up Go ${{ env.GO_VERSION }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go/test-runtime-version/go.work
cache: false
id: go
@@ -55,10 +53,10 @@ jobs:
name: Test Windows
runs-on: windows-latest-xl
steps:
- name: Set up Go ${{ env.GO_VERSION }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go/test-runtime-version/go.work
cache: false
id: go

View File

@@ -16,9 +16,6 @@ on:
- .github/actions/**
- codeql-workspace.yml
env:
GO_VERSION: '~1.22.0'
permissions:
contents: read
@@ -28,10 +25,10 @@ jobs:
name: Test Linux (Ubuntu)
runs-on: ubuntu-latest-xl
steps:
- name: Set up Go ${{ env.GO_VERSION }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go/test-runtime-version/go.work
cache: false
id: go

View File

@@ -1,4 +0,0 @@
module github.com/github/codeql-go/ql/test
go 1.21

View File

@@ -0,0 +1 @@
go 1.22