Add basic tests

Run release pipeline on tags
This commit is contained in:
Jonathan Gazeley
2022-05-17 21:20:18 +01:00
parent a5d4dface8
commit ab94997dd6
3 changed files with 46 additions and 5 deletions

16
.github/workflows/test-go.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
on: [push, pull_request]
name: Test server
jobs:
test:
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test ./...
working-directory: server