@@ -35,14 +35,35 @@ jobs:
35
35
run : pnpm install
36
36
37
37
- name : Run Affected Build
38
- run : npx nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache
38
+ run : npx nx run-many --targets=build --projects=tag:type:pkg
39
39
40
40
- name : Configuration xvfb
41
41
shell : bash
42
42
run : sudo apt-get update && sudo apt-get install xvfb
43
43
44
- - name : E2E Chrome Devtools
45
- run : pnpm run app:manifest:dev & echo "done" && npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 && sleep 10 && npx nx e2e:devtools chrome-devtools
44
+ - name : E2E Chrome Devtools Dev
45
+ uses : nick-fields/retry@v3
46
+ with :
47
+ timeout_minutes : 10
48
+ max_attempts : 3 # Initial attempt + 2 retries
49
+ command : |
50
+ npx kill-port 3009 3010 3011 3012 3013 4001 &&
51
+ pnpm run app:manifest:dev & echo "done" && \
52
+ npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 tcp:3013 && \
53
+ sleep 10 &&
54
+ npx nx e2e:devtools chrome-devtools
55
+
56
+ - name : E2E Chrome Devtools Prod
57
+ uses : nick-fields/retry@v3
58
+ with :
59
+ timeout_minutes : 10
60
+ max_attempts : 3 # Initial attempt + 2 retries
61
+ command : |
62
+ npx kill-port 3009 3010 3011 3012 3013 4001 &&
63
+ pnpm run app:manifest:prod & echo "done" && \
64
+ npx wait-on tcp:3009 tcp:3010 tcp:3011 tcp:3012 tcp:3013 && \
65
+ sleep 10 &&
66
+ npx nx e2e:devtools chrome-devtools
46
67
47
68
- name : kill port
48
- run : lsof -ti tcp:3008, 3009, 3010, 3011, 3012 | xargs kill
69
+ run : npx kill-port 3013 3009 3010 3011 3012 4001
0 commit comments