@@ -199,14 +199,6 @@ jobs:
199199
200200 - uses : ./.github/actions/setup-go
201201
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-
210202 - uses : hashicorp/setup-terraform@v2
211203 with :
212204 terraform_version : 1.1.9
@@ -243,6 +235,11 @@ jobs:
243235 path : ./gotests.xml
244236 retention-days : 30
245237
238+ - uses : ./.github/actions/upload-datadog
239+ if : always()
240+ with :
241+ api-key : ${{ secrets.DATADOG_API_KEY }}
242+
246243 - uses : codecov/codecov-action@v3
247244 # This action has a tendency to error out unexpectedly, it has
248245 # the `fail_ci_if_error` option that defaults to `false`, but
@@ -267,14 +264,6 @@ jobs:
267264
268265 - uses : ./.github/actions/setup-go
269266
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-
278267 - uses : hashicorp/setup-terraform@v2
279268 with :
280269 terraform_version : 1.1.9
@@ -299,6 +288,11 @@ jobs:
299288 path : ./gotests.xml
300289 retention-days : 30
301290
291+ - uses : ./.github/actions/upload-datadog
292+ if : always()
293+ with :
294+ api-key : ${{ secrets.DATADOG_API_KEY }}
295+
302296 - uses : codecov/codecov-action@v3
303297 # This action has a tendency to error out unexpectedly, it has
304298 # the `fail_ci_if_error` option that defaults to `false`, but
@@ -326,7 +320,12 @@ jobs:
326320
327321 - name : Run Tests
328322 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 }}
330329
331330 deploy :
332331 name : " deploy"
0 commit comments