chore(ci): start saving/restoring go build cache (#721)
This commit uses a build cache for the coverage and netxlite github actions. See https://github.com/ooni/probe/issues/2093.
This commit is contained in:
parent
ded4b08113
commit
e93756be20
3 changed files with 13 additions and 9 deletions
5
.github/workflows/netxlite.yml
vendored
5
.github/workflows/netxlite.yml
vendored
|
|
@ -6,15 +6,16 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
jobs:
|
||||
test:
|
||||
test_netxlite_package:
|
||||
runs-on: "${{ matrix.os }}"
|
||||
strategy:
|
||||
matrix:
|
||||
go: [ "1.17.9" ]
|
||||
os: [ "ubuntu-20.04", "windows-2019", "macos-10.15" ]
|
||||
steps:
|
||||
- uses: actions/setup-go@v1
|
||||
- uses: magnetikonline/action-golang-cache@v2
|
||||
with:
|
||||
go-version: "${{ matrix.go }}"
|
||||
cache-key-suffix: "-coverage-${{ matrix.go }}"
|
||||
- uses: actions/checkout@v2
|
||||
- run: go test -race ./internal/netxlite/...
|
||||
|
|
|
|||
Loading…
Reference in a new issue