ci: adds unit test workflow

This commit is contained in:
Manuel Vogel 2020-11-10 20:45:31 +01:00
parent 61cbf9a453
commit 4e84e46269
No known key found for this signature in database
GPG key ID: 24E54F214569A8A5

24
.github/workflows/unit-test.yaml vendored Normal file
View file

@ -0,0 +1,24 @@
---
name: Unit Tests
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '**.go'
- 'vendor/**'
- '.github/workflows/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.15'
- run: bash scripts/gogetcookie.sh
- run: make vet
- run: make test