Skip to content

Commit c1662c0

Browse files
committed
chore: restructuring tests so that they run some things sequentially, and adding regions to smoke tests
1 parent 68bf089 commit c1662c0

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/terraform_provider_pr.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140

141141
go_test_smoke_aa_db:
142142
name: go test smoke aa db
143-
needs: [go_unit_test, tfproviderlint, terraform_providers_schema, go_test_smoke_aa_sub]
143+
needs: [ go_test_smoke_aa_sub ]
144144
runs-on: ubuntu-latest
145145
steps:
146146
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -151,6 +151,19 @@ jobs:
151151
with:
152152
test_pattern: TestAccResourceRedisCloudActiveActiveDatabase_CRUDI
153153

154+
go_test_smoke_aa_regions:
155+
name: go test smoke aa regions
156+
needs: [ go_test_smoke_aa_sub ]
157+
runs-on: ubuntu-latest
158+
steps:
159+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
160+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
161+
with:
162+
go-version-file: go.mod
163+
- uses: ./.github/actions/run-testacc
164+
with:
165+
test_pattern: TestAccResourceRedisCloudActiveActiveSubscriptionRegions_CRUDI
166+
154167
go_test_smoke_pro_sub:
155168
name: go test smoke pro sub
156169
needs: [go_unit_test, tfproviderlint, terraform_providers_schema]
@@ -166,7 +179,7 @@ jobs:
166179

167180
go_test_smoke_pro_db:
168181
name: go test smoke pro db
169-
needs: [ go_unit_test, tfproviderlint, terraform_providers_schema, go_test_smoke_pro_sub ]
182+
needs: [ go_test_smoke_pro_sub ]
170183
runs-on: ubuntu-latest
171184
steps:
172185
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -219,7 +232,7 @@ jobs:
219232

220233
go_test_pro_db_upgrade:
221234
name: go test smoke pro db upgrade
222-
needs: [go_unit_test, tfproviderlint, terraform_providers_schema]
235+
needs: [go_test_smoke_pro_sub]
223236
runs-on: ubuntu-latest
224237
steps:
225238
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)