Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Datadog JUnitXML Upload

Actions
Upload JUnitXML reports files to Datadog CI Visibility
v1.2.0
Verified creator
Star (8)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

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

Datadog JUnitXML Upload is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Upload JUnitXML reports files to Datadog CI Visibility
v1.2.0

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Datadog JUnitXML Upload is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.