mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Go: write test go runtime version in a specific file
This commit is contained in:
10
.github/workflows/go-tests-other-os.yml
vendored
10
.github/workflows/go-tests-other-os.yml
vendored
@@ -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
|
||||
|
||||
|
||||
7
.github/workflows/go-tests.yml
vendored
7
.github/workflows/go-tests.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
module github.com/github/codeql-go/ql/test
|
||||
|
||||
go 1.21
|
||||
|
||||
1
go/test-runtime-version/go.work
Normal file
1
go/test-runtime-version/go.work
Normal file
@@ -0,0 +1 @@
|
||||
go 1.22
|
||||
Reference in New Issue
Block a user