terraform-provider-docker/.github/workflows/unit-test.yaml
Manuel Vogel 4d40b84443
fix/service image name (#212)
* fix(service): remove image name suppress function
* feat: add docker image data-source
* docs(service): add example for iamge datasource usage
* fix: image repo digest with tag determination
* fix: always return a repoDigest
* fix(image): deprecation notice for latest attribute
* fix(ci): explicitly go get tfplugindocs
* fix(ci): remove gocenter.io proxy
2021-06-21 09:24:02 +02:00

35 lines
670 B
YAML

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