Skip to content

Commit 656a76f

Browse files
authored
use go-version-file vs matrix named go-version (prequel-dev#57)
* use go-version-file vs matrix named go-version * update to setup-go@v5 to match rest of ci, and use go-version-file in cla-bot * remove ' from go.mod in coverage.yml * consistent extensions of .github/workflows, .yaml | .yml no longer mixed
1 parent 1c2149e commit 656a76f

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
go-version: [1.24.2]
2221
os: [ubuntu-24.04]
2322
steps:
2423
- name: Checkout Repository
2524
uses: actions/checkout@v4
26-
27-
- name: Set up Go ${{ matrix.go-version }}
28-
uses: actions/setup-go@v4
25+
26+
- name: Set up Go
27+
uses: actions/setup-go@v5
2928
with:
30-
go-version: ${{ matrix.go-version }}
29+
go-version-file: go.mod
3130

3231
- name: Verify Go Version
3332
run: go version

.github/workflows/cla-bot.yaml renamed to .github/workflows/cla-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.24'
24+
go-version-file: go.mod
2525

2626
- name: Run cla-bot
2727
env:

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
with:
1616
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
1717
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
18-
18+
1919
- name: Setup go
20-
uses: actions/setup-go@v4
20+
uses: actions/setup-go@v5
2121
with:
22-
go-version-file: 'go.mod'
22+
go-version-file: go.mod
2323

2424
- name: Run Test
2525
run: |

0 commit comments

Comments
 (0)