2020-04-26 06:11:35 +03:00
|
|
|
name: Go
|
2020-10-06 19:53:36 +03:00
|
|
|
on: [push, pull_request]
|
2020-04-26 06:11:35 +03:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Test
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-10-06 19:53:58 +03:00
|
|
|
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
|
|
|
|
go-version: [ "1.13", "1.14", "1.15" ]
|
2020-04-26 06:11:35 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2020-10-06 19:53:58 +03:00
|
|
|
- name: Set up Go ${{ matrix.go-version }}
|
2020-10-06 19:49:58 +03:00
|
|
|
uses: actions/setup-go@v2
|
2020-04-26 06:11:35 +03:00
|
|
|
with:
|
2020-10-06 19:53:58 +03:00
|
|
|
go-version: ${{ matrix.go-version }}
|
2020-04-26 06:11:35 +03:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
2020-11-18 20:16:05 +03:00
|
|
|
run: go test -v ./ -count=1
|
2020-10-06 19:54:29 +03:00
|
|
|
|
2020-11-18 20:12:48 +03:00
|
|
|
- name: Test with GC
|
2020-11-18 20:26:56 +03:00
|
|
|
run: go test -v ./ -count=1
|
|
|
|
env:
|
|
|
|
GOGC: 1
|
2020-11-18 20:12:48 +03:00
|
|
|
|
2020-11-18 20:21:04 +03:00
|
|
|
# - name: Test with race detector
|
|
|
|
# run: go test -v -race ./ -count=1
|