ci: send test statistics to DataDog (#7786)

This commit is contained in:
Ammar Bandukwala
2023-06-01 16:25:52 -05:00
committed by GitHub
parent 083449c438
commit 613f90cf2b
3 changed files with 37 additions and 17 deletions
+16 -17
View File
@@ -199,14 +199,6 @@ jobs:
- uses: ./.github/actions/setup-go
- name: Install gotestsum
uses: jaxxstorm/action-install-gh-release@v1.10.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo: gotestyourself/gotestsum
tag: v1.9.0
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.1.9
@@ -243,6 +235,11 @@ jobs:
path: ./gotests.xml
retention-days: 30
- uses: ./.github/actions/upload-datadog
if: always()
with:
api-key: ${{ secrets.DATADOG_API_KEY }}
- uses: codecov/codecov-action@v3
# This action has a tendency to error out unexpectedly, it has
# the `fail_ci_if_error` option that defaults to `false`, but
@@ -267,14 +264,6 @@ jobs:
- uses: ./.github/actions/setup-go
- name: Install gotestsum
uses: jaxxstorm/action-install-gh-release@v1.10.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo: gotestyourself/gotestsum
tag: v1.9.0
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.1.9
@@ -299,6 +288,11 @@ jobs:
path: ./gotests.xml
retention-days: 30
- uses: ./.github/actions/upload-datadog
if: always()
with:
api-key: ${{ secrets.DATADOG_API_KEY }}
- uses: codecov/codecov-action@v3
# This action has a tendency to error out unexpectedly, it has
# the `fail_ci_if_error` option that defaults to `false`, but
@@ -326,7 +320,12 @@ jobs:
- name: Run Tests
run: |
go test -race ./...
gotestsum --junitfile="gotests.xml" -- -race ./...
- uses: ./.github/actions/upload-datadog
if: always()
with:
api-key: ${{ secrets.DATADOG_API_KEY }}
deploy:
name: "deploy"