Add GitHub Actions for continuous build/test and creating releases.

This commit is contained in:
Patrick Fairbank
2021-05-16 11:29:56 -07:00
parent 965694253c
commit c115ae4c5d
2 changed files with 129 additions and 0 deletions

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

@@ -0,0 +1,18 @@
on: [push, pull_request]
name: Build/Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build
- name: Test
run: go test ./...
- name: Check formatting
run: go fmt ./...