mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
ci: Playwright project organization (#17905)
This commit is contained in:
14
.github/workflows/playwright-test-reusable.yml
vendored
14
.github/workflows/playwright-test-reusable.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user