terraform-provider-docker/.github/workflows/unit-test.yaml
Manuel Vogel b1a5b526d5
fix/workflows (#169)
* fix: align gh wf path with go.mod and remove vendor dir

* fix: removes duplicated go version env

* chore: extract docker ce version as env

* chore: removes leading yaml lines
2021-04-08 20:15:06 +09:00

30 lines
558 B
YAML

name: Unit Tests
on:
push:
branches:
- master
- "release/**"
pull_request:
types: ['opened', 'synchronize']
paths:
- '**.go'
- go.mod
- '.github/workflows/**'
env:
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
jobs:
unit-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- run: cat /etc/issue
- run: bash scripts/gogetcookie.sh
- run: make vet
- run: make test