Skip to content

Commit

Permalink
gha:setup-go: Use go version from go.mod
Browse files Browse the repository at this point in the history
Instead of using the latest go stable release, we can tell the setup-go
action to use the go version specified in the go.mod file.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
  • Loading branch information
cfergeau committed Aug 28, 2024
1 parent ab3014f commit a13c5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
go-version-file: go.mod
- name: golangci-lint
run: make lint
build:
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
go-version-file: go.mod
- name: Build
run: make
- name: Test
Expand Down

0 comments on commit a13c5d5

Please sign in to comment.