mirror of https://github.com/goccy/go-json.git
Merge pull request #52 from zchee/ci-support-multiversion
Support multiple go version
This commit is contained in:
commit
e88d0248b5
.github/workflows
|
@ -1,17 +1,18 @@
|
||||||
name: Go
|
name: Go
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test
|
name: Test
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
|
||||||
|
go-version: [ "1.13", "1.14", "1.15" ]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.13
|
- name: Set up Go ${{ matrix.go-version }}
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.13
|
go-version: ${{ matrix.go-version }}
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
|
@ -19,3 +20,6 @@ jobs:
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./
|
run: go test -v ./
|
||||||
|
|
||||||
|
- name: Test with race detector
|
||||||
|
run: go test -v -race ./
|
||||||
|
|
Loading…
Reference in New Issue