Skip to content

Commit

Permalink
Use toolchain version of go.mod (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Nov 9, 2024
1 parent 1e89575 commit 24ef09c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: toolchain
run: echo "version=$(sed -ne '/^toolchain /s/^toolchain go//p' go.mod)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: 1.23.3
go-version: ${{ steps.toolchain.outputs.version }}
cache-dependency-path: go.sum
- run: go test -v -race ./...

Expand All @@ -44,9 +46,11 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- id: toolchain
run: echo "version=$(sed -ne '/^toolchain /s/^toolchain go//p' go.mod)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: 1.23.3
go-version: ${{ steps.toolchain.outputs.version }}
cache-dependency-path: go.sum
- run: go mod tidy
- uses: int128/update-generated-files-action@757376506709ed3d87f14a80ca28a98736d52236 # v2.55.0

0 comments on commit 24ef09c

Please sign in to comment.