@@ -199,14 +199,6 @@ jobs:
199
199
200
200
- uses : ./.github/actions/setup-go
201
201
202
- - name : Install gotestsum
203
- uses : jaxxstorm/action-install-gh-release@v1.10.0
204
- env :
205
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
206
- with :
207
- repo : gotestyourself/gotestsum
208
- tag : v1.9.0
209
-
210
202
- uses : hashicorp/setup-terraform@v2
211
203
with :
212
204
terraform_version : 1.1.9
@@ -243,6 +235,11 @@ jobs:
243
235
path : ./gotests.xml
244
236
retention-days : 30
245
237
238
+ - uses : ./.github/actions/upload-datadog
239
+ if : always()
240
+ with :
241
+ api-key : ${{ secrets.DATADOG_API_KEY }}
242
+
246
243
- uses : codecov/codecov-action@v3
247
244
# This action has a tendency to error out unexpectedly, it has
248
245
# the `fail_ci_if_error` option that defaults to `false`, but
@@ -267,14 +264,6 @@ jobs:
267
264
268
265
- uses : ./.github/actions/setup-go
269
266
270
- - name : Install gotestsum
271
- uses : jaxxstorm/action-install-gh-release@v1.10.0
272
- env :
273
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
274
- with :
275
- repo : gotestyourself/gotestsum
276
- tag : v1.9.0
277
-
278
267
- uses : hashicorp/setup-terraform@v2
279
268
with :
280
269
terraform_version : 1.1.9
@@ -299,6 +288,11 @@ jobs:
299
288
path : ./gotests.xml
300
289
retention-days : 30
301
290
291
+ - uses : ./.github/actions/upload-datadog
292
+ if : always()
293
+ with :
294
+ api-key : ${{ secrets.DATADOG_API_KEY }}
295
+
302
296
- uses : codecov/codecov-action@v3
303
297
# This action has a tendency to error out unexpectedly, it has
304
298
# the `fail_ci_if_error` option that defaults to `false`, but
@@ -326,7 +320,12 @@ jobs:
326
320
327
321
- name : Run Tests
328
322
run : |
329
- go test -race ./...
323
+ gotestsum --junitfile="gotests.xml" -- -race ./...
324
+
325
+ - uses : ./.github/actions/upload-datadog
326
+ if : always()
327
+ with :
328
+ api-key : ${{ secrets.DATADOG_API_KEY }}
330
329
331
330
deploy :
332
331
name : " deploy"
0 commit comments