Add actions/setup-go@v2 (#27)

* Run tests for Ubuntu and macOS
This commit is contained in:
Dave Gallant
2020-10-07 09:07:10 -04:00
committed by GitHub
parent e5d67e701b
commit 15f667f75d

18
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...