Skip to content

Commit 0d339b3

Browse files
Merge pull request #444 from shiftstack/use-pinned-go-version
Use pinned go version for CI
2 parents eabf1fe + f39d281 commit 0d339b3

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

.github/workflows/go-lint.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- uses: actions/setup-go@v5
17+
- name: Calculate go version
18+
id: vars
19+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
1823
with:
19-
go-version: '1'
24+
go-version: ${{ steps.vars.outputs.go_version }}
2025

2126
- run: |
2227
make lint

.github/workflows/label-pr.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ jobs:
2727
env:
2828
GIT_SEQUENCE_EDITOR: '/usr/bin/true'
2929

30-
- uses: actions/setup-go@v5
30+
- name: Calculate go version
31+
id: vars
32+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
33+
34+
- name: Set up Go
35+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
3136
with:
32-
go-version: '1'
37+
go-version: ${{ steps.vars.outputs.go_version }}
3338

3439
- name: Checking Go API Compatibility
3540
id: go-apidiff

.github/workflows/unit.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- uses: actions/setup-go@v5
21+
- name: Calculate go version
22+
id: vars
23+
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
24+
25+
- name: Set up Go
26+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # tag=v5.4.0
2227
with:
23-
go-version: ${{ matrix.go-version }}
28+
go-version: ${{ steps.vars.outputs.go_version }}
2429

2530
- run: |
2631
make test

0 commit comments

Comments
 (0)