terraform-provider-docker/.github/workflows/unit-test.yaml
Martin c1b39d282b
chore: Reduce time to setup AccTests (#430)
* feat: Download static docker image in acc_tests

* feat: Removing docker install from acc test job.

* feat: Only run private registry for selected tests.

* chore: Remove not needed env variables from acc-tests.

* chore: Ignore compile job for tags and test-only commits.

* chore: Remove vet and errcheck from Makefile.
2022-08-10 14:50:38 +02:00

33 lines
622 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.17"
jobs:
unit-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup cookies
run: |
cat /etc/issue
bash scripts/gogetcookie.sh
- name: Running unit tests
run: make test