Skip to content

Commit

Permalink
Use go-version-file (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Sep 23, 2024
1 parent 3d114bf commit 765d975
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ on:

jobs:
check:
uses: int128/go-workflows/.github/workflows/check.yaml@v0.3.0
uses: int128/go-workflows/.github/workflows/check.yaml@v0.4.0
with:
go-version: 1.23.1
go-version-file: go.mod
cache-dependency-path: go.sum
golangci-lint-version: v1.61.0

test:
Expand All @@ -34,7 +35,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.1
go-version-file: go.mod
cache-dependency-path: go.sum
- run: go test -v -race ./...

generate:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.1
go-version-file: go.mod
cache-dependency-path: go.sum
- run: go build -ldflags '-X main.version=${{ github.ref_name }}'
- uses: int128/go-release-action@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/system-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.1
go-version-file: go.mod
cache-dependency-path: go.sum

# for certutil
# https://packages.ubuntu.com/xenial/libnss3-tools
Expand Down

0 comments on commit 765d975

Please sign in to comment.