diff --git a/.github/workflows/datadog-synthetics.yml b/.github/workflows/datadog-synthetics.yml index 66c70f8..ffba166 100644 --- a/.github/workflows/datadog-synthetics.yml +++ b/.github/workflows/datadog-synthetics.yml @@ -20,19 +20,17 @@ on: branches: [ "main" ] jobs: - build: + e2e-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Run Synthetic tests within your GitHub workflow. # For additional configuration options visit the action within the marketplace: https://github.com/marketplace/actions/datadog-synthetics-ci - name: Run Datadog Synthetic tests + if: ${{ secrets.DD_API_KEY != '' && secrets.DD_APP_KEY != '' }} uses: DataDog/synthetics-ci-github-action@87b505388a22005bb8013481e3f73a367b9a53eb # v1.4.0 with: - api_key: ${{secrets.DD_API_KEY}} - app_key: ${{secrets.DD_APP_KEY}} - test_search_query: 'tag:e2e-tests' #Modify this tag to suit your tagging strategy - - + api_key: ${{ secrets.DD_API_KEY }} + app_key: ${{ secrets.DD_APP_KEY }} + test_search_query: 'tag:ci-required-e2e'