Skip to content

Commit 24ae02d

Browse files
ci: improve e2e stability of next (#1979)
1 parent cf050e1 commit 24ae02d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ jobs:
4747
- name: Run Affected Test
4848
run: npx nx affected -t test --parallel=3 --exclude='*,!tag:package'
4949

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
5252

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
5555

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
5858

5959
- name: Serve Projects 3005-runtime-host, 3006-runtime-remote, 3007-runtime-remote
6060
run: npx nx run-many --target=serve --projects=3005-runtime-host,3006-runtime-remote,3007-runtime-remote --parallel=3 & echo "done"

0 commit comments

Comments
 (0)