mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-22 07:42:48 +00:00
Use setup-go cache (#834)
This commit is contained in:
20
.github/workflows/go.yaml
vendored
20
.github/workflows/go.yaml
vendored
@@ -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 ./...
|
||||
|
||||
Reference in New Issue
Block a user