Skip to content

Commit

Permalink
fix(ci): fix node options generation for unit tests (#333)
Browse files Browse the repository at this point in the history
if not datadog is not piped
  • Loading branch information
karrui authored Sep 24, 2024
1 parent ffa3f39 commit 396cd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
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
uses: datadog/test-visibility-github-action@v2
with:
languages: js
service: ${{ secrets.DD_SERVICE_NAME }}
Expand All @@ -49,7 +49,7 @@ jobs:
run: npm run test:vitest
env:
# Required to allow Datadog to trace Vitest tests
NODE_OPTIONS: ${{ env.DD_API_KEY && env.DD_SERVICE_NAME && format('-r {0} --import {1}', env.DD_TRACE_PACKAGE, env.DD_TRACE_ESM_IMPORT) || '' }}
NODE_OPTIONS: ${{ secrets.DD_API_KEY && secrets.DD_SERVICE_NAME && format('-r {0} --import {1}', env.DD_TRACE_PACKAGE, env.DD_TRACE_ESM_IMPORT) || '' }}

end-to-end-tests:
name: End-to-end tests
Expand Down

0 comments on commit 396cd00

Please sign in to comment.