Skip to content

Commit

Permalink
update workflow to use go version from go.mod (#1032)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <[email protected]>
  • Loading branch information
k4leung4 authored Jul 8, 2024
1 parent 133c809 commit d807594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.22'
go-version-file: 'go.mod'
check-latest: true

- uses: chainguard-dev/actions/goimports@2cadca168a422313df94f6169691a86498ae51b1 # main
Expand All @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.22'
go-version-file: 'go.mod'
check-latest: true

- run: make wolfictl
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.22'
go-version-file: 'go.mod'
check-latest: true
cache: false

- name: golangci-lint
Expand Down

0 comments on commit d807594

Please sign in to comment.