@@ -176,10 +176,27 @@ jobs:
176176 docker exec \
177177 -e TEST_TAGS="${{ inputs.test-tags }}" \
178178 -e TEST_VIDEO="${{ inputs.video }}" \
179+ -e JORE4_CYPRESS_GENERATE_CTRF_REPORT=true \
179180 -e SPLIT="${{ strategy.job-total }}" \
180181 -e SPLIT_INDEX="${{ strategy.job-index }}" \
181182 cypress /e2e/cypress/run_cypress_in_4K_xvfb.sh
182183
184+ - name : Copy test results
185+ id : copy_test_results
186+ # Should be run especially when tests fail
187+ if : always()
188+ shell : bash
189+ run : |
190+ docker cp cypress:/e2e/cypress/ctrf/ctrf-report.json ${{ github.workspace }}/ctrf-report.json
191+
192+ - name : Upload test reports as an artifact
193+ # Should be run especially when tests fail
194+ if : always()
195+ uses : actions/upload-artifact@v4
196+ with :
197+ name : cypress-test-results-${{ strategy.job-index }}
198+ path : ${{ github.workspace }}/ctrf-report.json
199+
183200 - name : Copy test reports from Cypress container
184201 id : copy_test_reports
185202 # Should be run especially when tests fail
@@ -205,3 +222,26 @@ jobs:
205222 with :
206223 name : cypress-docker-reports-${{ strategy.job-index }}
207224 path : ${{ github.workspace }}/test-reports
225+
226+ publish_e2e_test_results :
227+ name : Publish E2E Test Results
228+ runs-on : ubuntu-24.04
229+ needs :
230+ - run_e2e_tests
231+ steps :
232+ - name : Download E2E Test Results
233+ uses : actions/download-artifact@v4
234+ continue-on-error : true
235+ with :
236+ pattern : cypress-test-results-*
237+ path : ${{ github.workspace }}/ctrf
238+
239+ - name : Publish Test Report
240+ uses : ctrf-io/github-test-reporter@27b97adba93f02142c573c8a710045cac0d874ae # v1.0.14
241+ with :
242+ report-path : ' ctrf/*/*.json'
243+ summary-report : true
244+ failed-report : true
245+ flaky-report : true
246+ skipped-report : true
247+ test-report : false
0 commit comments