Skip to content

Commit

Permalink
Merge pull request #52 from zchee/ci-support-multiversion
Browse files Browse the repository at this point in the history
Support multiple go version
  • Loading branch information
goccy committed Nov 16, 2020
2 parents 600ebf0 + fd28e42 commit e88d024
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: Go
on: [push]
on: [push, pull_request]
jobs:
build:
name: Test
strategy:
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 }}
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: 1.13
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 ./

- name: Test with race detector
run: go test -v -race ./

0 comments on commit e88d024

Please sign in to comment.