Skip to content

Commit

Permalink
fix: use loose env mode when running ci tests
Browse files Browse the repository at this point in the history
if not, no env var are piped to the test, means no datadog
  • Loading branch information
karrui committed Sep 23, 2024
1 parent 676a55b commit fbf696f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
service: isomer-studio
api_key: ${{ secrets.DD_API_KEY }}
- name: Test Studio
run: turbo test-ci:unit --filter=isomer-studio
# Loose env mode required for env vars to be passed to the run
run: turbo test-ci:unit --filter=isomer-studio --env-mode=loose
env:
# Required to allow Datadog to trace Vitest tests
NODE_OPTIONS: -r ${{ env.DD_TRACE_PACKAGE }} --import ${{ env.DD_TRACE_ESM_IMPORT }}
Expand Down Expand Up @@ -114,7 +115,8 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Build Studio app
run: turbo build --filter=isomer-studio
# Loose env mode required for env vars to be passed to the run
run: turbo build --filter=isomer-studio --env-mode=loose

- name: Start test containers
run: npm run setup:test
Expand Down

0 comments on commit fbf696f

Please sign in to comment.