Skip to content

rafal-pomocnik-captivateiq/junit-upload-github-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 20
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

About

GitHub Action to Upload JunitXML files to CI Visibility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published