88
99jobs :
1010 e2e_tests :
11- name : Playwright Tests (${{ matrix.shard }})
11+ name : Playwright Tests
1212 runs-on : ubuntu-latest
1313 permissions :
1414 contents : read
15- strategy :
16- fail-fast : false
17- matrix :
18- shard : [1, 2, 3, 4]
1915
2016 services :
2117 backend :
4440
4541 - name : Run Playwright tests
4642 id : run_tests
47- run : npx playwright test --shard ${{ matrix.shard }}/4
43+ run : npm run test:e2e
4844 env :
4945 CI : true
5046 PLAYWRIGHT_VIDEO : ' on'
5349 if : always()
5450 uses : actions/upload-artifact@v3
5551 with :
56- name : playwright-artifacts-${{ matrix.shard }}
52+ name : playwright-artifacts
5753 path : playwright-artifacts
5854 retention-days : 5
5955
9490 echo "flaky=$flaky" >> $GITHUB_OUTPUT
9591 echo "skipped=$skipped" >> $GITHUB_OUTPUT
9692
97- merge_reports :
98- name : Merge Test Reports
99- if : always()
100- needs : [e2e_tests]
101- runs-on : ubuntu-latest
102- steps :
103- - uses : actions/checkout@v4
104-
105- - name : Download all artifacts
106- uses : actions/download-artifact@v3
107- with :
108- path : all-artifacts
109-
110- - name : Merge reports
111- run : |
112- mkdir -p merged-artifacts/playwright-report
113- # Merge HTML reports (just copy the last one as they can't be properly merged)
114- cp -r all-artifacts/playwright-artifacts-*/playwright-report/* merged-artifacts/playwright-report/
115-
116- # Create directory for merged results
117- mkdir -p merged-artifacts
118-
119- - name : Upload merged artifacts
120- uses : actions/upload-artifact@v3
121- with :
122- name : playwright-artifacts
123- path : merged-artifacts
124- retention-days : 5
125-
12693 bundle_size :
12794 name : Check Bundle Size
12895 runs-on : ubuntu-latest
@@ -188,7 +155,7 @@ jobs:
188155
189156 deploy_report :
190157 name : Deploy Test Report
191- needs : [merge_reports ]
158+ needs : [e2e_tests ]
192159 if : always() && (github.event_name == 'push' && github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository))
193160 runs-on : ubuntu-latest
194161 permissions :
@@ -206,7 +173,7 @@ jobs:
206173 mkdir gh-pages
207174 git --work-tree=gh-pages checkout gh-pages -- .
208175
209- - name : Download merged artifacts
176+ - name : Download Playwright artifacts
210177 uses : actions/download-artifact@v3
211178 with :
212179 name : playwright-artifacts
@@ -248,7 +215,7 @@ jobs:
248215 with :
249216 fetch-depth : 0
250217
251- - name : Download merged artifacts
218+ - name : Download Playwright artifacts
252219 uses : actions/download-artifact@v3
253220 with :
254221 name : playwright-artifacts
0 commit comments