Skip to content

Commit 55211b2

Browse files
authored
ci: remove hardcoded references to GitHub version (#119)
1 parent 585be88 commit 55211b2

File tree

5 files changed

+8
-25
lines changed

5 files changed

+8
-25
lines changed

.github/workflows/check-goreleaser-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ jobs:
2727
runs-on: ubuntu-latest
2828
timeout-minutes: 15
2929

30-
strategy:
31-
matrix:
32-
# Without quotes, 1.20 becomes 1.2!
33-
go-version: ["1.22"]
3430
steps:
3531
- name: checkout
3632
uses: actions/checkout@v4
@@ -39,7 +35,7 @@ jobs:
3935

4036
- uses: actions/setup-go@v5
4137
with:
42-
go-version: ${{ matrix.go-version }}
38+
go-version-file: "src/gabo/go.mod"
4339
cache: false # Disable caching to avoid cache poisoning
4440

4541
- name: Install Go Releaser

.github/workflows/format-go.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,16 @@ jobs:
2828
runs-on: ubuntu-latest
2929
timeout-minutes: 15
3030

31-
strategy:
32-
matrix:
33-
# Without quotes, 1.20 becomes 1.2!
34-
go-version: ["1.22"]
3531
steps:
3632
- name: checkout
3733
uses: actions/checkout@v4
3834
with:
3935
persist-credentials: false
4036

41-
- name: Set up Go ${{ matrix.go-version }}
37+
- name: Set up Go
4238
uses: actions/setup-go@v5
4339
with:
44-
go-version: ${{ matrix.go-version }}
40+
go-version-file: "src/gabo/go.mod"
4541

4642
# Ref: https://github.com/actions/cache/blob/main/examples.md#go---modules
4743
# Warning: This is Linux specific

.github/workflows/lint-go.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,16 @@ jobs:
2828
runs-on: ubuntu-latest
2929
timeout-minutes: 15
3030

31-
strategy:
32-
matrix:
33-
# Without quotes, 1.20 becomes 1.2!
34-
go-version: ["1.22"]
3531
steps:
3632
- name: checkout
3733
uses: actions/checkout@v4
3834
with:
3935
persist-credentials: false
4036

41-
- name: Set up Go ${{ matrix.go-version }}
37+
- name: Set up Go
4238
uses: actions/setup-go@v5
4339
with:
44-
go-version: ${{ matrix.go-version }}
40+
go-version-file: "src/gabo/go.mod"
4541

4642
# Ref: https://github.com/actions/cache/blob/main/examples.md#go---modules
4743
# Warning: This is Linux specific

.github/workflows/release-binary.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
21
---
32
name: Create release
43

@@ -34,7 +33,7 @@ jobs:
3433
- name: Setup Go
3534
uses: actions/setup-go@v5
3635
with:
37-
go-version: stable
36+
go-version-file: "src/gabo/go.mod"
3837
cache: false # Disable caching to avoid cache poisoning
3938

4039
- name: Read gabo version name

.github/workflows/test-go.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,16 @@ jobs:
2828
runs-on: ubuntu-latest
2929
timeout-minutes: 15
3030

31-
strategy:
32-
matrix:
33-
# Without quotes, 1.20 becomes 1.2!
34-
go-version: ["1.22"]
3531
steps:
3632
- name: checkout
3733
uses: actions/checkout@v4
3834
with:
3935
persist-credentials: false
4036

41-
- name: Set up Go ${{ matrix.go-version }}
37+
- name: Set up Go
4238
uses: actions/setup-go@v5
4339
with:
44-
go-version: ${{ matrix.go-version }}
40+
go-version-file: "src/gabo/go.mod"
4541

4642
# Ref: https://github.com/actions/cache/blob/main/examples.md#go---modules
4743
# Warning: This is Linux specific

0 commit comments

Comments
 (0)