-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (59 loc) · 1.83 KB
/
scheduled-acctests.yaml
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
55
56
57
58
59
60
61
name: Scheduled Acceptance Tests
on:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"
jobs:
acceptance:
name: Acceptance Tests
strategy:
fail-fast: false
matrix:
terraform:
- "1.4.*"
- "1.10.*"
max-parallel: 1
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: make testacc
env:
TF_ACC: "1"
PINGAIC_TF_SERVICE_ACCOUNT_ID: ${{ secrets.SERVICE_ACCOUNT_ID }}
PINGAIC_TF_SERVICE_ACCOUNT_PRIVATE_KEY: ${{ secrets.SERVICE_ACCOUNT_PRIVATE_KEY }}
PINGAIC_TF_TENANT_ENV_FQDN: ${{ secrets.PINGAIC_TF_TENANT_ENV_FQDN }}
promotionacceptance:
# Note: if this fails, it may be necessary to manually unlock the environment with the API to allow other tests to succeed
name: Promotion Lock Acceptance Tests
needs: [acceptance]
strategy:
fail-fast: false
matrix:
terraform:
- "1.10.*"
max-parallel: 1
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: make testaccpromotion
env:
TF_ACC: "1"
PINGAIC_TF_SERVICE_ACCOUNT_ID: ${{ secrets.SERVICE_ACCOUNT_ID }}
PINGAIC_TF_SERVICE_ACCOUNT_PRIVATE_KEY: ${{ secrets.SERVICE_ACCOUNT_PRIVATE_KEY }}
PINGAIC_TF_TENANT_ENV_FQDN: ${{ secrets.PINGAIC_TF_TENANT_ENV_FQDN }}