Merge pull request #8 from pajlada/chore/ci-go-build-and-test

ci: Add build and test workflow
This commit is contained in:
Leon Richardt 2022-08-21 14:00:59 +02:00 committed by GitHub
commit fd1c79948a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,33 @@
---
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.18, 1.19]
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build
- name: Test
run: go test -v ./...