Skip to content

Commit

Permalink
chore(ci): use go-version-file for setup-go action.
Browse files Browse the repository at this point in the history
Moreover, switch to setup-go@v4 that supports caching by default.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Feb 28, 2024
1 parent e5cf52a commit 522466a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:
persist-credentials: false

- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
uses: actions/setup-go@v4
with:
go-version: '1.21'
check-latest: true
go-version-file: 'go.mod'

- name: Execute go mod tidy and check the outcome
working-directory: ./
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ jobs:
run: git fetch --prune --force --tags

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version-file: 'go.mod'

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable_build_test_driverkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version-file: 'go.mod'

- name: Build
run: make build
Expand Down

0 comments on commit 522466a

Please sign in to comment.