Skip to content

Commit

Permalink
env mode strict for top level turbo
Browse files Browse the repository at this point in the history
this is to ensure that env vars set for this top level turbo invocation dont filter down into the turbo
executed in the test
  • Loading branch information
mehulkar committed Jun 15, 2023
1 parent 5675853 commit afaf809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
key: prysk-venv-${{ matrix.os.name }}

- name: Integration Tests
run: turbo run test --filter=turborepo-tests-integration
run: turbo run test --filter=turborepo-tests-integration --env-mode=strict
env:
GO_TAG: rust

Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: E2E Tests
run: turbo run test --filter=turborepo-tests-e2e --remote-only --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} --color
run: turbo run test --filter=turborepo-tests-e2e --remote-only --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} --color --env-mode=strict

turborepo_examples:
name: Turborepo Examples
Expand Down Expand Up @@ -365,7 +365,7 @@ jobs:
# Note: using CLI flags instead of env vars because
# envs var would apply to the actual tests that exercise turbo also,
# making test output non-deterministic.
run: turbo run example-test --continue --color --remote-only --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }}
run: turbo run example-test --continue --color --remote-only --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }} --env-mode=strict

# Re-enable corepack, actions/setup-node invokes other package managers and
# that causes corepack to throw an error, so we disable it here. The "Post" step
Expand Down

0 comments on commit afaf809

Please sign in to comment.