Use build cache

This commit is contained in:
Masaaki Goshima 2021-01-11 01:03:30 +09:00
parent 35a58e5b5f
commit 9dd260fec8
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,16 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
'%LocalAppData%\go-build'
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: simple test
run: go test -v ./ -count=1
- name: test with GC pressure