Skip to content

Commit e71d038

Browse files
committed
Go: specify Go runtime version in actions
1 parent c123513 commit e71d038

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

go/actions/test/action.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
name: Test go extractor
22
description: Run build, QL tests and optionally basic code sanity checks (formatting and generation)
33
inputs:
4+
go-version:
5+
description: Which Go version to use for running the tests
6+
required: false
7+
default: ~1.22.0
48
run-code-checks:
59
description: Whether to run formatting, code and qhelp generation checks
610
required: false
711
default: false
812
runs:
913
using: composite
1014
steps:
11-
- name: Get go version
12-
shell: bash
13-
run: |
14-
(
15-
echo -n "GO_VERSION="
16-
bazel run @rules_go//go -- version | sed 's/go version go\(.*\) .*/\1/'
17-
) | tee -a "$GITHUB_ENV"
18-
1915
- name: Set up Go
2016
uses: actions/setup-go@v5
2117
with:
22-
go-version: ${{ env.GO_VERSION }}
18+
go-version: ${{ inputs.go-version }}
2319
cache: false
2420
id: go
2521

0 commit comments

Comments
 (0)