66 - push
77 - workflow_call
88jobs :
9- test-suites :
9+ web-component-suites :
10+ name : Web-Component tests and utilities verification
1011 runs-on : ubuntu-latest
1112 # Stop the occasional rogue instance before the 6h GitHub limit
1213 timeout-minutes : 15
2223 - name : Install everything
2324 run : npm install
2425
25- - name : Ng test for studio-web
26- run : |
27- npx nx build web-component
28- npx nx test:once studio-web
2926 - name : Cypress run for web-component
3027 uses : cypress-io/github-action@v6
3128 with :
@@ -54,15 +51,15 @@ jobs:
5451 npx nx bundle web-component
5552 git status
5653 git diff --word-diff=porcelain --word-diff-regex=... --color | perl -ple 's/^(\x1b[^ -+]{0,6})? (.{81,})$/$1 . " " . substr($2, 0, 40) . " [... " . (length($2)-80) . " bytes ...] " . substr($2, -40)/ex'
57- playwright -tests :
58- name : Run Playwright test-suites
54+ studio-e2e -tests :
55+ name : Studio Web test-suites
5956 timeout-minutes : 60
6057 runs-on : ubuntu-latest
6158 strategy :
6259 fail-fast : false
6360 matrix :
64- shardIndex : [1, 2, 3, 4]
65- shardTotal : [4 ]
61+ shardIndex : [1, 2, 3, 4, 5 ]
62+ shardTotal : [5 ]
6663 steps :
6764 - uses : actions/checkout@v4
6865 - uses : actions/setup-node@v4
@@ -80,14 +77,18 @@ jobs:
8077 run : npm install
8178 - name : Install dependencies
8279 run : npm ci
80+ - name : Ng test for studio-web
81+ run : |
82+ npx nx build web-component
83+ npx nx test:once studio-web
8384 - name : Run studio-web in the background
8485 run : |
8586 npx nx build web-component
8687 npx nx run-many --targets=serve,serve-fr,serve-es --projects=web-component,studio-web --parallel 6 &
8788
8889 # wait for the studio web to be up
89- sleep 100
90- curl --retry 20 --retry-delay 30 --retry-all-errors http://localhost:4200
90+ sleep 50
91+ curl --retry 20 --retry-delay 10 --retry-all-errors http://localhost:4200 > /dev/null
9192 - name : Run Playwright tests for studio-web
9293 run : |
9394 npx playwright install --with-deps chromium
@@ -102,8 +103,8 @@ jobs:
102103 merge-reports :
103104 # Merge reports after playwright-tests, even if some shards have failed
104105 if : ${{ !cancelled() }}
105- needs : [playwright -tests]
106- name : " Merge playwright reports"
106+ needs : [studio-e2e -tests]
107+ name : " Merge playwright reports from studio-web end-to-end tests "
107108 runs-on : ubuntu-latest
108109 steps :
109110 - uses : actions/checkout@v4
@@ -123,10 +124,10 @@ jobs:
123124 pattern : blob-report-*
124125 merge-multiple : true
125126
126- - name : Merge into HTML Report
127+ - name : Merge into a single HTML Report
127128 run : npx playwright merge-reports --reporter=html,github ./all-blob-reports
128129
129- - name : Upload HTML report
130+ - name : Upload single HTML report
130131 uses : actions/upload-artifact@v4
131132 with :
132133 name : html-report--attempt-${{ github.run_attempt }}
0 commit comments