Skip to content

Commit

Permalink
Add cache for go modules to speed up CI (closes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Sep 23, 2020
1 parent 85df4f6 commit 05b4399
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make test
run: make test
2 changes: 1 addition & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Snyk
name: snyk

on:
push:
Expand Down

0 comments on commit 05b4399

Please sign in to comment.