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 <[email protected]>
  • Loading branch information
cfergeau committed Aug 22, 2024
1 parent 47ece27 commit 421a7c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
build:
Expand All @@ -40,8 +40,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
go-version: ${{ matrix.go-version }}
- name: Build
run: make
- name: Test
Expand Down

0 comments on commit 421a7c2

Please sign in to comment.