.github/workflows: Build and test on every push

This commit is contained in:
Michael Aldridge 2026-11-01 19:46:11 -06:00
parent 7c99ae60e5
commit 3cbc9652ea

24
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test -race ./...