Add go workflow (#119)

This commit is contained in:
Christian Muehlhaeuser 2019-12-31 12:15:57 +01:00 committed by GitHub
commit 3262d45d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/go.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Go
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Download Go modules
env:
GO111MODULE: "on"
run: go mod download
- name: Build
env:
GO111MODULE: "on"
run: go build -v ./...
- name: Test
env:
GO111MODULE: "on"
run: go test ./...