Skip to content

Commit

Permalink
add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Sep 17, 2024
1 parent d87286b commit 0cea236
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
version: 9.9.0 # temporary fix for Nx Cloud PNPM version detection
run_install: false

- run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e"

- name: Install dependencies
run: pnpm install
Expand All @@ -34,9 +34,9 @@ jobs:
run: |
pnpm format:check
pnpm lint
pnpm exec nx run-many -t test build
- name: Run Playwright tests
run: pnpm --filter "@tasker/e2e-web" e2e
pnpm exec nx run-many -t test build e2e
# - name: Run Playwright tests
# run: pnpm --filter "@tasker/e2e-web" e2e
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
3 changes: 2 additions & 1 deletion e2e/web/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default defineConfig({

webServer: {
timeout: 30_000,
command: 'pnpm --filter "@tasker/web" start',
// command: 'pnpm --filter "@tasker/web" start',
command: 'pnpm nx start "@tasker/web"',
url: 'http://localhost:3000',
reuseExistingServer: true,
},
Expand Down

0 comments on commit 0cea236

Please sign in to comment.