Skip to content

Commit

Permalink
actions: add cache to speed up build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Dec 31, 2020
1 parent 4553049 commit 449cd1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:

- uses: franzdiebold/github-env-vars-action@v2

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
Expand Down Expand Up @@ -57,6 +64,14 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.1.0
with:
Expand Down

0 comments on commit 449cd1f

Please sign in to comment.