Use go-version-file (#1142)

This commit is contained in:
Hidetake Iwata
2024-09-23 18:06:11 +09:00
committed by GitHub
parent 3d114bfeba
commit 765d97542c
3 changed files with 9 additions and 5 deletions

View File

@@ -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:
@@ -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:

View File

@@ -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:

View File

@@ -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