-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (47 loc) · 1.48 KB
/
acctest.yaml
File metadata and controls
54 lines (47 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Acceptance Tests
on:
workflow_dispatch:
inputs:
ref:
description: 'The ref to checkout e.g the SHA of a fork in PR'
type: string
required: false
default: 'main'
tests:
description: 'The TESTS pattern to supply to `make testacc`. Default is all tests.'
type: string
required: false
default: 'TestAcc'
terraform-version:
description: 'Terraform version'
type: string
required: false
default: '1.9.*'
jobs:
acctest:
name: Acceptance Test
runs-on: ubuntu-latest
timeout-minutes: 60
concurrency: acctest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
- run: go mod download
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: ${{ inputs.terraform-version }}
terraform_wrapper: false
- uses: docker/login-action@v2
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: index-stage.docker.io
- run: |
make testacc TESTS='${{ inputs.tests }}'
env:
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_HUB_HOST: "hub-stage.docker.com"
TF_ACC: "1"
timeout-minutes: 30