Skip to content

Commit

Permalink
build(ci): add dd observability to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle authored Sep 6, 2024
1 parent 433da67 commit c5bcf90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,20 @@ jobs:
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci
- name: Configure Datadog Test Visibility
env:
DD_SERVICE_NAME: ${{ secrets.DD_SERVICE_NAME }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
if: env.DD_SERVICE_NAME != '' && env.DD_API_KEY != ''
uses: datadog/test-visibility-github-action@v1
with:
languages: js
service-name: ${{ secrets.DD_SERVICE_NAME }}
api-key: ${{ secrets.DD_API_KEY }}
- run: npm test
env:
# Required to allow Datadog to trace Vitest tests
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
gatekeep:
name: Determine if Build & Deploy is needed
outputs:
Expand Down

0 comments on commit c5bcf90

Please sign in to comment.