You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action downloads the [datadog-ci](https://github.com/DataDog/datadog-ci) and uses it to upload JUnitXML files
4
-
to the [CI Visibility product](https://docs.datadoghq.com/continuous_integration/).
4
+
to the [Test Optimization product](https://docs.datadoghq.com/tests/).
5
5
6
6
This action sets up node and requires node `>=14`. You can configure a specific version of node to use.
7
-
Note that if you have setup another version already it will override it.
7
+
Note that if you have set up another version already it will override it.
8
8
9
9
## Usage
10
10
11
11
```yaml
12
12
name: Test Code
13
-
on: [push]
13
+
on: [push]
14
14
jobs:
15
15
test:
16
16
steps:
17
17
- uses: actions/checkout@v3
18
18
- run: make tests
19
-
- uses: datadog/junit-upload-github-action@v1
19
+
- uses: datadog/junit-upload-github-action@v2
20
20
with:
21
-
api_key: ${{ secrets.DD_API_KEY }}
22
-
service: my-app
23
-
files: ./reports/
21
+
api_key: ${{ secrets.DD_API_KEY }}
24
22
```
25
23
26
24
## Inputs
27
25
28
26
The action has the following options:
29
27
30
-
| Name | Description | Required | Default |
31
-
| ---- | ----------- | -------- | ------- |
32
-
| `api_key` | Datadog API key to use to upload the junit files. | True | |
33
-
| `service` | Service name to use with the uploaded test results. | True | |
34
-
| `site` | The Datadog site to upload the files to. | True | `datadoghq.com` |
35
-
| `files` | Path to file or folder containing XML files to upload | True | `.` |
36
-
| `concurrency` | Controls the maximum number of concurrent file uploads | True | `20` |
37
-
| `node-version` | The node version to use to install the datadog-ci. It must be `>=14` | True | `20` |
38
-
| `tags` | Optional extra tags to add to the tests formatted as a comma separated list of tags. Example: `foo:bar,data:dog`| False | |
39
-
| `env` | Optional environment to add to the tests | False | |
40
-
| `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 | |
| `api_key` | Datadog API key to use to upload the junit files. | True | |
31
+
| `site` | The Datadog site to upload the files to. | False | `datadoghq.com` |
32
+
| `files` | Path to file or folder containing XML files to upload | False | `.` |
33
+
| `auto-discovery` | Do a recursive search and automatic XML files discovery in the folders provided in `files` input (current folder if omitted). | False | `true` |
34
+
| `ignored-paths` | A comma-separated list of paths that are ignored when junit files auto-discovery is done. Glob patterns are supported. | False | |
35
+
| `concurrency` | Controls the maximum number of concurrent file uploads | False | `20` |
36
+
| `node-version` | The node version to use to install the datadog-ci. It must be `>=14` | False | `20` |
37
+
| `tags` | Optional extra tags to add to the tests formatted as a comma separated list of tags. Example: `foo:bar,data:dog`| False | |
38
+
| `service` | Service name to use with the uploaded test results. | False | |
39
+
| `env` | Optional environment to add to the tests | False | |
40
+
| `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 | |
0 commit comments