mirror of https://github.com/goccy/go-json.git
29 lines
680 B
YAML
29 lines
680 B
YAML
name: Go
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: Test
|
|
strategy:
|
|
matrix:
|
|
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
|
|
go-version: [ "1.13", "1.14", "1.15" ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Set up Go ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
|
run: go test -v ./ -count=1
|
|
|
|
- name: Test with GC
|
|
run: GOGC=1 go test -v ./ -count=1
|
|
|
|
- name: Test with race detector
|
|
run: go test -v -race ./ -count=1
|