Skip to content
datadog

GitHub Action

Datadog JUnitXML Upload

v1.2.0 Latest version

Datadog JUnitXML Upload

datadog

Datadog JUnitXML Upload

Upload JUnitXML reports files to Datadog CI Visibility

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Datadog JUnitXML Upload

uses: DataDog/junit-upload-github-action@v1.2.0

Learn more about this action in DataDog/junit-upload-github-action

Choose a version

Datadog JUnitXML Upload Actions

This action downloads the datadog-ci and uses it to upload JUnitXML files to the CI Visibility product.

This action sets up node and requires node >=10.24.1. You can configure a specific version of node to use. Note that if you have setup another version already it will override it.

Usage

name: Test Code
on: [push]
jobs:
  test:
    steps:
      - uses: actions/checkout@v3
      - run: make tests
      - uses: datadog/junit-upload-github-action@v1
        with:
            api-key: ${{ secrets.DD_API_KEY }}
            service: my-app
            files: ./reports/

Inputs

The action has the following options:

Name Description Required Default
api-key Datadog API key to use to upload the junit files. True
service Service name to use with the uploaded test results. True
datadog-site The Datadog site to upload the files to. True datadoghq.com
files Path to file or folder containing XML files to upload True .
concurrency Controls the maximum number of concurrent file uploads True 20
node-version The node version to use to install the datadog-ci. It must be >=10.24.1 True 16
tags Optional extra tags to add to the tests False
env Optional environment to add to the tests False
logs When set to "true" enables forwarding content from the XML reports as Logs. The content inside <system-out>, <system-err>, and <failure> is collected as logs. Logs from elements inside a <testcase> are automatically connected to the test. False
extra-args Extra args to be passed to the datadog-ci junit upload command. False