@@ -102,6 +102,17 @@ jobs:
102102 mkdir terraform-providers-schema
103103 terraform providers schema -json > terraform-providers-schema/schema.json
104104
105+ go_unit_test :
106+ name : go unit test
107+ needs : [go_build]
108+ runs-on : ubuntu-latest
109+ steps :
110+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
111+ - uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
112+ with :
113+ go-version-file : go.mod
114+ - run : go test ./... -run="^TestUnit" # Runs tests starting with TestUnit
115+
105116 go_test_smoke_aa_tgw_attachment :
106117 if : false # Temporarily disabled - TGW tests not ready yet
107118 name : go test smoke aa tgw attachment
@@ -116,7 +127,7 @@ jobs:
116127
117128 go_test_smoke_aa_db :
118129 name : go test smoke aa db
119- needs : [go_build ]
130+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
120131 runs-on : ubuntu-latest
121132 steps :
122133 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -127,7 +138,7 @@ jobs:
127138
128139 go_test_smoke_essentials_sub :
129140 name : go test smoke essentials sub
130- needs : [go_build ]
141+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
131142 runs-on : ubuntu-latest
132143 steps :
133144 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -151,7 +162,7 @@ jobs:
151162
152163 go_test_smoke_pro_db :
153164 name : go test smoke pro db
154- needs : [go_build ]
165+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
155166 runs-on : ubuntu-latest
156167 steps :
157168 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -163,7 +174,7 @@ jobs:
163174
164175 go_test_smoke_misc :
165176 name : go test smoke misc
166- needs : [ go_build ]
177+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
167178 runs-on : ubuntu-latest
168179 steps :
169180 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -174,7 +185,7 @@ jobs:
174185
175186 go_test_pro_db_upgrade :
176187 name : go test smoke pro db upgrade
177- needs : [ go_build ]
188+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
178189 runs-on : ubuntu-latest
179190 steps :
180191 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -185,7 +196,7 @@ jobs:
185196
186197 go_test_privatelink :
187198 name : go test smoke privatelink
188- needs : [ go_build ]
199+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
189200 runs-on : ubuntu-latest
190201 steps :
191202 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -197,7 +208,7 @@ jobs:
197208
198209 go_test_block_public_endpoints :
199210 name : go test smoke public endpoints
200- needs : [ go_build ]
211+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
201212 runs-on : ubuntu-latest
202213 steps :
203214 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -208,7 +219,7 @@ jobs:
208219
209220 go_test_smoke_qpf :
210221 name : go test smoke query performance factor
211- needs : [ go_build ]
222+ needs : [go_unit_test, tfproviderlint, terraform_providers_schema ]
212223 runs-on : ubuntu-latest
213224 steps :
214225 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -217,17 +228,6 @@ jobs:
217228 go-version-file : go.mod
218229 - run : EXECUTE_TESTS=true make testacc TESTARGS='-run="TestAccResourceRedisCloudProDatabase_qpf"'
219230
220- go_unit_test :
221- name : go unit test
222- needs : [go_build]
223- runs-on : ubuntu-latest
224- steps :
225- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
226- - uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
227- with :
228- go-version-file : go.mod
229- - run : go test ./... -run="^TestUnit" # Runs tests starting with TestUnit
230-
231231 tfproviderlint :
232232 name : tfproviderlint
233233 needs : [go_build]
0 commit comments