add build action

This commit is contained in:
Victor Vrantchan
2020-07-10 07:32:32 -04:00
parent 4dfecb7113
commit b5c0644ff5
2 changed files with 32 additions and 0 deletions

30
.github/workflows/go.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Go
on:
push:
branches: [ v2dev ]
pull_request:
branches: [ v2dev ]
jobs:
test-build:
name: Test & Build
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: checkout
uses: actions/checkout@v2
- name: test
run: |
go mod tidy -v
go test -race ./...