Skip to content

Commit

Permalink
Go: put back go setup
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed Apr 26, 2024
1 parent 0f387ee commit 375660c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ on:
- .github/actions/**
- codeql-workspace.yml

env:
GO_VERSION: '~1.22.0'

permissions:
contents: read

Expand All @@ -31,6 +28,21 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Get go version
shell: bash
run: |
(
echo -n "GO_VERSION="
bazel run @rules_go//go -- version | sed 's/go version go\(\S*\) .*/\1/'
) | tee -a "$GITHUB_ENV"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
id: go

- name: Set up CodeQL CLI
uses: ./.github/actions/fetch-codeql

Expand Down

0 comments on commit 375660c

Please sign in to comment.