Fix workflow

This commit is contained in:
Masaaki Goshima 2021-01-11 01:28:24 +09:00
parent 5c5d8233d9
commit 71d34479fa
1 changed files with 2 additions and 11 deletions

View File

@ -5,7 +5,7 @@ jobs:
name: Test name: Test
strategy: strategy:
matrix: matrix:
os: [ "ubuntu-latest", "macos-latest" ] os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
go-version: [ "1.13", "1.14", "1.15" ] go-version: [ "1.13", "1.14", "1.15" ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -15,16 +15,6 @@ jobs:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
'%LocalAppData%\go-build'
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ matrix.os }}-go-
- name: simple test - name: simple test
run: go test -v ./ -count=1 run: go test -v ./ -count=1
- name: test with GC pressure - name: test with GC pressure
@ -32,6 +22,7 @@ jobs:
env: env:
GOGC: 1 GOGC: 1
- name: test with race detector - name: test with race detector
if: ${{ matrix.os == 'macos-latest' }}
run: go test -v -race ./ -count=1 run: go test -v -race ./ -count=1
coverage: coverage:
name: Coverage name: Coverage