6
6
- push
7
7
- workflow_call
8
8
jobs :
9
- test-suites :
9
+ web-component-suites :
10
+ name : Web-Component tests and utilities verification
10
11
runs-on : ubuntu-latest
11
12
# Stop the occasional rogue instance before the 6h GitHub limit
12
13
timeout-minutes : 15
22
23
- name : Install everything
23
24
run : npm install
24
25
25
- - name : Ng test for studio-web
26
- run : |
27
- npx nx build web-component
28
- npx nx test:once studio-web
29
26
- name : Cypress run for web-component
30
27
uses : cypress-io/github-action@v6
31
28
with :
@@ -54,15 +51,15 @@ jobs:
54
51
npx nx bundle web-component
55
52
git status
56
53
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
59
56
timeout-minutes : 60
60
57
runs-on : ubuntu-latest
61
58
strategy :
62
59
fail-fast : false
63
60
matrix :
64
- shardIndex : [1, 2, 3, 4]
65
- shardTotal : [4 ]
61
+ shardIndex : [1, 2, 3, 4, 5, 6, 7, 8, 9 ]
62
+ shardTotal : [9 ]
66
63
steps :
67
64
- uses : actions/checkout@v4
68
65
- uses : actions/setup-node@v4
@@ -80,14 +77,18 @@ jobs:
80
77
run : npm install
81
78
- name : Install dependencies
82
79
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
83
84
- name : Run studio-web in the background
84
85
run : |
85
86
npx nx build web-component
86
87
npx nx run-many --targets=serve,serve-fr,serve-es --projects=web-component,studio-web --parallel 6 &
87
88
88
89
# 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
91
92
- name : Run Playwright tests for studio-web
92
93
run : |
93
94
npx playwright install --with-deps chromium
@@ -102,8 +103,8 @@ jobs:
102
103
merge-reports :
103
104
# Merge reports after playwright-tests, even if some shards have failed
104
105
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 "
107
108
runs-on : ubuntu-latest
108
109
steps :
109
110
- uses : actions/checkout@v4
@@ -123,10 +124,10 @@ jobs:
123
124
pattern : blob-report-*
124
125
merge-multiple : true
125
126
126
- - name : Merge into HTML Report
127
+ - name : Merge into a single HTML Report
127
128
run : npx playwright merge-reports --reporter=html,github ./all-blob-reports
128
129
129
- - name : Upload HTML report
130
+ - name : Upload single HTML report
130
131
uses : actions/upload-artifact@v4
131
132
with :
132
133
name : html-report--attempt-${{ github.run_attempt }}
0 commit comments