Skip to content

Commit

Permalink
Use version in go.mod for setup-go GitHub Action (#492)
Browse files Browse the repository at this point in the history
This allows us to test using the supported version we've specified in
our `go.mod` instead of having to manually bump the version in the
workflow files.

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Co-authored-by: Caleb Brown <calebbrown@google.com>
  • Loading branch information
JAORMX and calebbrown authored Sep 3, 2024
1 parent 410fea9 commit 4b05cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: 'go.mod'

- name: Run tests
run: go test -v -skip TestPyPIArtifactsLive ./...
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
go-version-file: 'go.mod'

- name: Build
run: make build
Expand Down

0 comments on commit 4b05cf0

Please sign in to comment.