Add cache to unit tests workflow
This commit is contained in:
parent
88af36c520
commit
b1140299f4
8
.github/workflows/unit_tests.yaml
vendored
8
.github/workflows/unit_tests.yaml
vendored
@ -10,6 +10,14 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/go/pkg/mod
|
||||||
|
~/.cache/go-build
|
||||||
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v -covermode=count -coverprofile=coverage.out
|
run: go test -v -covermode=count -coverprofile=coverage.out
|
||||||
- name: Convert coverage to lcov
|
- name: Convert coverage to lcov
|
||||||
|
Loading…
Reference in New Issue
Block a user