ci: Playwright project organization (#17905)

This commit is contained in:
shortstacked
2025-08-04 19:59:06 +01:00
committed by GitHub
parent e8dad4e030
commit d0443dce11
366 changed files with 251 additions and 234 deletions

View File

@@ -54,29 +54,19 @@ jobs:
if: inputs.test-mode == 'docker-build'
run: pnpm turbo install-browsers:ci
- name: Start Local Server
if: inputs.test-mode == 'local'
env:
E2E_TESTS: true
run: |
pnpm start &
npx wait-on http://localhost:5678 --timeout 15000
- name: Run Tests (Local)
if: inputs.test-mode == 'local'
run: |
pnpm --filter=n8n-playwright test \
pnpm --filter=n8n-playwright test:local \
--shard=${{ matrix.shard }}/${{ strategy.job-total }} \
--workers=2
env:
N8N_BASE_URL: http://localhost:5678
RESET_E2E_DB: true
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
- name: Run Tests (Docker)
if: inputs.test-mode != 'local'
run: |
pnpm --filter=n8n-playwright run test:standard \
pnpm --filter=n8n-playwright test:container:standard \
--shard=${{ matrix.shard }}/${{ strategy.job-total }} \
--workers=2
env: