mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-30 10:19:28 -05:00
ci: adds unit test workflow
This commit is contained in:
parent
61cbf9a453
commit
4e84e46269
1 changed files with 24 additions and 0 deletions
24
.github/workflows/unit-test.yaml
vendored
Normal file
24
.github/workflows/unit-test.yaml
vendored
Normal 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
|
||||
|
||||
Loading…
Reference in a new issue