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
+5
View File
@@ -8,3 +8,8 @@ runs:
with:
cache: true
go-version: "~1.20"
- name: Install gotestsum
uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: gotestyourself/gotestsum
tag: v1.9.0
@@ -0,0 +1,16 @@
name: Upload tests to datadog
if: always()
inputs:
api-key:
description: "Datadog API key"
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
npm install -g @datadog/datadog-ci
datadog-ci junit upload --service coder ./gotests.xml \
--tags os:${{runner.os}} --tags runner_name:${{runner.name}}
env:
DATADOG_API_KEY: ${{ inputs.api-key }}