@@ -46,26 +46,35 @@ jobs:
46
46
- name : Run Affected Test
47
47
run : npx nx affected -t test --parallel=3 --exclude='*,!tag:type:pkg'
48
48
49
- - name : E2E Test for Next.js
50
- run : pnpm run app:next:dev & echo "done" && npx wait-on tcp:3000 && npx wait-on tcp:3001 && npx wait-on tcp:3002 && npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=2 && lsof -ti tcp:3000,3001,3002 | xargs kill
51
-
52
- # - name: E2E Test for 3001-shop
53
- # run: pnpm run app:next:dev & echo "done" && sleep 20 && npx nx run-many --target=test:e2e --projects=3001-shop && lsof -ti tcp:3000,3001,3002 | xargs kill
49
+ - name : E2E Test for Next.js Dev
50
+ run : |
51
+ pnpm run app:next:dev > /dev/null 2>&1 &
52
+ sleep 1 &&
53
+ npx wait-on tcp:3001 &&
54
+ npx wait-on tcp:3002 &&
55
+ npx wait-on tcp:3000 &&
56
+ npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=3 &&
57
+ lsof -ti tcp:3000,3001,3002 | xargs kill
58
+
59
+ - name : E2E Test for Next.js Prod
60
+ run : |
61
+ pnpm run --filter @module-federation/3002-checkout --filter @module-federation/3000-home --filter @module-federation/3001-shop build &&
62
+ pnpm run app:next:prod &
63
+ sleep 2 &&
64
+ npx wait-on tcp:3001 &&
65
+ npx wait-on tcp:3002 &&
66
+ npx wait-on tcp:3000 &&
67
+ npx nx run-many --target=test:e2e --projects=3000-home,3001-shop,3002-checkout --parallel=3 &&
68
+ lsof -ti tcp:3000,3001,3002 | xargs kill
54
69
55
70
- name : E2E Test for ModernJS
56
71
run : npx nx run-many --target=test:e2e --projects=modernjs --parallel=1 && lsof -ti tcp:4001 | xargs kill
57
72
58
- # - name: E2E Test for 3002-checkout
59
- # 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
60
-
61
73
- name : E2E Test for 3005-runtime-host
62
74
run : pnpm run app:runtime:dev & echo "done" && sleep 20 && npx nx run-many --target=test:e2e --projects=3005-runtime-host --parallel=1 && lsof -ti tcp:3005,3006,3007 | xargs kill
63
75
64
76
- name : E2E Test for 3008-webpack-host
65
- run : pnpm run app:manifest:dev & echo "done" && sleep 6 && npx nx run-many --target=e2e --projects=3008-webpack-host --parallel=1 && lsof -ti tcp:3008,3009,3010,3011,3012 | xargs kill
66
-
67
- - name : Build Next.js Apps in Production Mode
68
- run : pnpm app:next:build
77
+ run : pnpm run app:manifest:dev & echo "done" && npx wait-on tcp:3009 && npx wait-on tcp:3012 && npx nx run-many --target=e2e --projects=3008-webpack-host --parallel=1 && lsof -ti tcp:3008,3009,3010,3011,3012 | xargs kill
69
78
70
79
- name : E2E Node Federation
71
80
run : npx nx run-many --target=serve --projects=node-local-remote,node-remote --parallel=3 & echo "done" && sleep 10 && npx nx run-many --target=serve --projects=node-host & npx wait-on tcp:3333 && npx nx run node-host-e2e:test:e2e
0 commit comments