Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: use Go version from go.mod
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
simondeziel committed Dec 10, 2024

Verified

This commit was signed with the committer’s verified signature.
simondeziel Simon Deziel
1 parent 2907dcd commit e579413
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -20,8 +20,6 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
- "1.22"
channel:
- 5.0/stable
- 5.0/edge
@@ -38,10 +36,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'

- name: Setup LXD from ${{ matrix.channel }} channel
run: |
@@ -105,18 +103,12 @@ jobs:

build-platforms:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
go-version:
- "1.22"

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'

- name: Run GoReleaser in build mode to test all release platforms
uses: goreleaser/goreleaser-action@v6
@@ -125,18 +117,12 @@ jobs:

check-lint:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
go-version:
- "1.22"

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'

- name: Install dependencies
run: |

0 comments on commit e579413

Please sign in to comment.