Skip to content

Commit

Permalink
test: use go version from go.mod
Browse files Browse the repository at this point in the history
Also use the correct go version for building the package, and not the version from the system (Ubuntu 24.04)
see #146
  • Loading branch information
David Prodinger authored and fionera committed Nov 26, 2024
1 parent 8482824 commit 1368f37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go run mage.go lint
go-version-file: 'go.mod'

- name: Lint
run: go run mage.go lint
6 changes: 5 additions & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ jobs:
build:
strategy:
matrix:
arch: [amd64, arm64]
arch: [ amd64, arm64 ]
runs-on: ubuntu-24.04
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Print Go version and environment
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version-file: 'go.mod'

- name: setup environment
run: |
Expand Down

0 comments on commit 1368f37

Please sign in to comment.