Skip to content

Commit

Permalink
ci: disable e2e splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Jun 26, 2024
1 parent 4bf2534 commit adb8354
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,17 @@ jobs:
- run: npx nx-cloud record -- docker compose -p cat-fostering logs keto -n 500
- run: npx nx-cloud record -- docker compose -p cat-fostering logs kratos -n 500

- run: npx nx affected -t e2e --no-agents
if: ${{ env.NX_CLOUD_DISTRIBUTED_EXECUTION == 'false' }}
- name: Run e2e tests
run: npx nx affected -t e2e --no-agents
# if: ${{ env.NX_CLOUD_DISTRIBUTED_EXECUTION == 'false' }}

# to enable DTE for e2e tests splitting, use the following command instead and set stop-agents-after="e2e-ci"
- run: |
npm run ory:generate:keto -- -e .env.ci
docker compose -p cat-fostering restart keto
npm run ory:generate:kratos -- -e .env.ci
docker compose -p cat-fostering restart kratos
npm run pg:create:connection -- -e .env.ci
docker compose -p cat-fostering restart api
npx nx affected -t e2e-ci
if: ${{ env.NX_CLOUD_DISTRIBUTED_EXECUTION == 'true' }}
# - name: Run distributed e2e tests
# run: |
# npm run pg:create:connection -- -e .env.ci
# docker compose -p cat-fostering restart api
# npx nx affected -t e2e-ci
# if: ${{ env.NX_CLOUD_DISTRIBUTED_EXECUTION == 'true' }}

- run: npx nx-cloud complete-ci-run
if: always() && ${{ env.NX_CLOUD_DISTRIBUTED_EXECUTION == 'true' }}
2 changes: 1 addition & 1 deletion apps/cat-fostering-api-e2e/src/support/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async (): Promise<void> => {
process.env.CI ||
process.env.ACT ||
// unfortunately, the task generated for tests splitting do not contain the target name
process.env.NX_TASK_TARGET_TARGET === 'e2e-ci'
process.env.NX_TASK_TARGET_TARGET?.includes('e2e-ci')
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/cat-fostering-api-e2e/src/support/global-teardown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async (): Promise<void> => {
process.env.CI ||
process.env.ACT ||
// unfortunately, the task generated for tests splitting do not contain the target name
process.env.NX_TASK_TARGET_TARGET === 'e2e-ci'
process.env.NX_TASK_TARGET_TARGET?.includes('e2e-ci')
) {
return;
}
Expand Down

0 comments on commit adb8354

Please sign in to comment.