mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Merge pull request #6220 from jongwooo/chore/use-setup-go-action-to-cache-dependencies
Use setup-go action to cache dependencies
This commit is contained in:
commit
934d013614
15
.github/workflows/integration.yaml
vendored
15
.github/workflows/integration.yaml
vendored
@ -28,14 +28,19 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.19.1'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.19.1'
|
||||
check-latest: true
|
||||
cache: true
|
||||
cache-dependency-path: |
|
||||
**/go.sum
|
||||
**/go.mod
|
||||
- name: "Download k3s binary"
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
|
15
.github/workflows/unitcoverage.yaml
vendored
15
.github/workflows/unitcoverage.yaml
vendored
@ -30,14 +30,19 @@ jobs:
|
||||
os: [ubuntu-18.04, ubuntu-20.04]
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.19.1'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.19.1'
|
||||
check-latest: true
|
||||
cache: true
|
||||
cache-dependency-path: |
|
||||
**/go.sum
|
||||
**/go.mod
|
||||
- name: Run Unit Tests
|
||||
run: |
|
||||
go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit
|
||||
|
Loading…
Reference in New Issue
Block a user