Merge pull request #41 from circled-me/v2 #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [1.13, 1.11] | |
env: | |
GO111MODULE: auto | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Download dependencies | |
run: go mod download && go mod verify && go mod graph | |
- name: Build tests | |
run: go test -c | |
- name: Run unit tests | |
run: go test -race -cover ./... | |
- name: Test building on windows | |
env: {GOOS: windows} | |
run: go test -c | |
- name: Test building on darwin | |
env: {GOOS: darwin} | |
run: go test -c |