File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,6 @@ runs:
144144 - name : Run e2e tests
145145 env :
146146 CYPRESS_TESTS_KEPT_IN_MEMORY : " ${{ inputs.cypress_tests_kept_in_memory }}"
147- uses : HSLdevcom/jore4-tools/github-actions/run-cypress-tests@run-cypress-tests-v3
147+ uses : HSLdevcom/jore4-tools/github-actions/run-cypress-tests@split-e2e
148148 with :
149149 test-tags : " ${{ inputs.test-tags }}"
Original file line number Diff line number Diff line change 2424 docker exec \
2525 -e TEST_TAGS="${{ inputs.test-tags }}" \
2626 -e TEST_VIDEO="${{ inputs.video }}" \
27+ -e SPLIT="${{ strategy.job-total }}" \
28+ -e SPLIT_INDEX="${{ strategy.job-index }}" \
29+ -e SPLIT_OUTPUT_FILE=/e2e/timings.out.json \
2730 cypress /e2e/cypress/run_cypress_in_4K_xvfb.sh
2831 shell : bash
2932
@@ -32,16 +35,23 @@ runs:
3235 if : always()
3336 run : |
3437 docker cp cypress:/e2e/cypress/reports ${{ github.workspace }}/test-reports || echo "No reports"
38+ docker cp cypress:/e2e/timings.out.json ${{ github.workspace }}/timings.out.json || echo "No timings file"
3539 shell : bash
3640
3741 - name : Upload test reports as an artifact
3842 # should be run even if the tests fail
3943 if : always()
4044 uses : actions/upload-artifact@v4
4145 with :
42- name : cypress-docker-reports
46+ name : " cypress-docker-report-${{ strategy.job-index }}-of-${{ strategy.job-total }} "
4347 path : ${{ github.workspace }}/test-reports
4448
49+ - name : Upload cypress-split timings file
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : " cypress-timings-${{ strategy.job-index }}-of-${{ strategy.job-total }}"
53+ path : ${{ github.workspace }}/timings.out.json
54+
4555 - name : Fail the job
4656 # should fail the job if the tests fail
4757 if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments