Use setup-go cache (#834)

This commit is contained in:
Hidetake Iwata
2022-11-29 11:49:31 +09:00
committed by GitHub
parent 8b336ee2d5
commit bc6a86d002

View File

@@ -24,19 +24,35 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: int128/go-actions/setup@v1
- uses: actions/setup-go@v3
with:
go-version: 1.19.3
cache: true
- uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
tidy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v3
with:
go-version: 1.19.3
cache: true
- run: go mod tidy
- uses: int128/update-generated-files-action@v2
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: int128/go-actions/setup@v1
- uses: actions/setup-go@v3
with:
go-version: 1.19.3
cache: true
- run: go test -v -race ./...