Skip to content

Commit

Permalink
add e2e test splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Sep 17, 2024
1 parent d7b2363 commit 13f62ea
Show file tree
Hide file tree
Showing 5 changed files with 8,119 additions and 2,433 deletions.
4 changes: 2 additions & 2 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="e2e"
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci"

- name: Install dependencies
run: pnpm install
Expand All @@ -34,7 +34,7 @@ jobs:
run: |
pnpm format:check
pnpm lint
pnpm exec nx run-many -t test build e2e
pnpm exec nx run-many -t test build e2e-ci
# - name: Run Playwright tests
# run: pnpm --filter "@tasker/e2e-web" e2e
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion e2e/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@tasker/e2e-web",
"private": true,
"scripts": {
"e2e": "playwright test"
"e2e": "nx playwright:e2e"
},
"devDependencies": {
"date-fns": "^3.6.0",
Expand Down
11 changes: 10 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@
"namedInputs": {
"sharedGlobals": ["{workspaceRoot}/.github/workflows/verify.yml"],
"default": ["sharedGlobals"]
}
},
"plugins": [
{
"plugin": "@nx/playwright/plugin",
"options": {
"targetName": "playwright:e2e"
}
}
],
"bump": "1"
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
},
"devDependencies": {
"@eslint/js": "^9.2.0",
"@nx/playwright": "19.7.3",
"@nx/workspace": "19.7.3",
"@playwright/test": "^1.44.0",
"@testing-library/react": "^15.0.7",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"globals": "^15.2.0",
"jsdom": "^24.0.0",
"nx": "19.7.3",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"react": "^18.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"typescript-eslint": "^7.9.0",
"vitest": "^1.6.0",
"@playwright/test": "^1.44.0",
"nx": "19.7.3",
"@nx/workspace": "19.7.3"
"vitest": "^1.6.0"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 13f62ea

Please sign in to comment.