Skip to content

Commit a243f1b

Browse files
author
sammyne
committed
test(ci): cache dependencies to speed up
1 parent 7807ae7 commit a243f1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
CODECOV_TOKEN: 701e86bd-1c7e-43ee-903d-f73944e464c0 # for codecov
2222
steps:
2323
- uses: actions/checkout@v2
24+
- name: Cache dependencies
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/go/pkg/mod
28+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29+
restore-keys: |
30+
${{ runner.os }}-go-
2431
- name: Run tests
2532
run: | # -race wouldn't be supported without gcc
2633
go test -v -race $(go list ./... | grep -v /vendor/) -coverprofile=coverage.txt &&

0 commit comments

Comments
 (0)