Skip to content

Commit 782541e

Browse files
author
sasipadi
authored
Add Datadog Synthetic tests workflow
This workflow triggers Datadog Synthetic tests on pushes and pull requests to the main branch, using secrets for API and application keys.
1 parent 6da17c1 commit 782541e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will trigger Datadog Synthetic tests within your Datadog organisation
2+
# For more information on running Synthetic tests within your GitHub workflows see: https://docs.datadoghq.com/synthetics/cicd_integrations/github_actions/
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
# To get started:
10+
11+
# 1. Add your Datadog API (DD_API_KEY) and Application Key (DD_APP_KEY) as secrets to your GitHub repository. For more information, see: https://docs.datadoghq.com/account_management/api-app-keys/.
12+
# 2. Start using the action within your workflow
13+
14+
name: Run Datadog Synthetic tests
15+
16+
on:
17+
push:
18+
branches: [ "main" ]
19+
pull_request:
20+
branches: [ "main" ]
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
# Run Synthetic tests within your GitHub workflow.
30+
# For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci
31+
- name: Run Datadog Synthetic tests
32+
uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0
33+
with:
34+
api_key: ${{secrets.DD_API_KEY}}
35+
app_key: ${{secrets.DD_APP_KEY}}
36+
test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy
37+
38+

0 commit comments

Comments
 (0)