name:Run Synthetic tests using the test public IDsjobs:e2e_testing:runs-on:ubuntu-lateststeps:- name:Checkoutuses:actions/checkout@v3- name:Run Datadog Synthetic testsuses:DataDog/synthetics-ci-github-action@v2.0.0with:api_key:${{secrets.DD_API_KEY}}app_key:${{secrets.DD_APP_KEY}}public_ids:| abc-d3f-ghi
jkl-mn0-pqr
Note: By default, this workflow runs all the tests listed in {,!(node_modules)/**/}*.synthetics.json files (every file ending with .synthetics.json except for those in the node_modules folder). You can also trigger a list of Synthetic tests by specifying a public_id or using a search query.
The Datadog site to send data to. Default:datadoghq.com.
fail_on_critical_errors
boolean
optional
Fail the CI job if no tests were triggered, or results could not be fetched from Datadog. Default:false.
fail_on_missing_tests
boolean
optional
Fail the CI job if at least one specified test with a public ID (using public_ids or listed in a test file) is missing in a run (for example, if it has been deleted programmatically or on the Datadog site). Default:false.
fail_on_timeout
boolean
optional
Fail the CI job if at least one test exceeds the default test timeout. Default:true.
files
string
optional
Glob pattern to detect Synthetic test configuration files. Default:{,!(node_modules)/**/}*.synthetics.json.
junit_report
string
optional
The filename for a JUnit report if you want to generate one. Default: none.
public_ids
string
optional
Public IDs of Synthetic tests to run, separated by new lines or commas. If no value is provided, tests are discovered in *.synthetics.json files. Default: none.
subdomain
string
optional
The name of the custom subdomain set to access your Datadog application. If the URL used to access Datadog is myorg.datadoghq.com, the subdomain value needs to be set to myorg. Default:app.
test_search_query
string
optional
Trigger tests corresponding to a search query. Default: none.
Key-value pairs for injecting variables into tests, separated by newlines or commas. For example: START_URL=https://example.org,MY_VARIABLE=My title. Default:[].