Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ The action has the following options:
| `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 | |
6 changes: 6 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
logs:
required: false
description: Set to "true" to enable forwarding content from XML reports as logs.
extra-args:
default: ''
description: Extra args to be passed to the datadog-ci cli.
required: false
runs:
using: "composite"
steps:
Expand All @@ -51,6 +55,7 @@ runs:
--service ${{ inputs.service }} \
--logs \
--max-concurrency ${{ inputs.concurrency }} \
${{ inputs.extra-args }} \
${{ inputs.files }}
env:
DATADOG_API_KEY: ${{ inputs.api-key }}
Expand All @@ -64,6 +69,7 @@ runs:
datadog-ci junit upload \
--service ${{ inputs.service }} \
--max-concurrency ${{ inputs.concurrency }} \
${{ inputs.extra-args }} \
${{ inputs.files }}
env:
DATADOG_API_KEY: ${{ inputs.api-key }}
Expand Down