chore: Set up GitHub CI workflow

This commit is contained in:
Justin Johnson
2022-03-25 17:12:59 -05:00
parent 0f583a28ba
commit 76fdd41a8f

25
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
on: [push, pull_request]
name: Go Test
jobs:
unit:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu" ]
go: [ "1.17.x", "1.18.x" ]
env:
COVERAGES: ""
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os}} (go ${{ matrix.go }})
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Run tests
run: go test -v ./...