@@ -47,14 +47,14 @@ jobs:
47
47
- name : Run Affected Test
48
48
run : npx nx affected -t test --parallel=3 --exclude='*,!tag:package'
49
49
50
- - name : Serve Projects 3000-home, 3001-shop, 3002-checkout
51
- run : npx nx run-many --target=serve --projects=3000-home,3001-shop ,3002-checkout --parallel=3 & echo "done"
50
+ - name : E2E Test for 3000-home
51
+ run : pnpm run app:next:dev & echo "done" && sleep 15 && npx nx run-many --target=test:e2e --projects=3000-home && lsof -ti tcp:3000 ,3001,3002 | xargs kill
52
52
53
- - name : E2E Test for 3000-home, 3001-shop, 3002-checkout
54
- run : sleep 15 && npx nx run-many --target=test:e2e --projects=3000-home, 3001-shop, 3002-checkout --parallel=1
53
+ - name : E2E Test for 3001-shop
54
+ run : pnpm run app:next:dev & echo "done" && sleep 15 && npx nx run-many --target=test:e2e --projects=3001-shop && lsof -ti tcp:3000,3001, 3002 | xargs kill
55
55
56
- - name : Kill Processes on Ports 3000, 3001, 3002
57
- run : lsof -ti tcp:3000,3001,3002 | xargs kill
56
+ - name : E2E Test for 3002-checkout
57
+ run : pnpm run app:next:dev & echo "done" && sleep 15 && npx nx run-many --target=test:e2e --projects=3002-checkout && lsof -ti tcp:3000,3001,3002 | xargs kill
58
58
59
59
- name : Serve Projects 3005-runtime-host, 3006-runtime-remote, 3007-runtime-remote
60
60
run : npx nx run-many --target=serve --projects=3005-runtime-host,3006-runtime-remote,3007-runtime-remote --parallel=3 & echo "done"
0 commit comments