@@ -29,35 +29,68 @@ jobs:
2929
3030 - name : Run Playwright unit tests in Chromium for prod stage
3131 uses : nick-fields/retry@v2
32+ id : chromiumUnit
33+ continue-on-error : true
3234 with :
3335 timeout_minutes : 12
3436 max_attempts : 3
3537 command : npm run testChromiumDist
3638
3739 - name : Run Playwright integration tests in Chromium for prod stage
3840 uses : nick-fields/retry@v2
41+ id : chromiumIntegration
42+ continue-on-error : true
3943 with :
4044 timeout_minutes : 12
4145 max_attempts : 3
4246 command : npx cross-env TEST_ENV=integration npm run testChromiumDist
4347
4448 - name : Run Playwright mainview tests in Chromium for prod stage
4549 uses : nick-fields/retry@v2
50+ id : chromiumMainview
51+ continue-on-error : true
4652 with :
4753 timeout_minutes : 12
4854 max_attempts : 3
4955 command : npx cross-env TEST_ENV=mainview npm run testChromiumDist
5056
5157 - name : Run Playwright livepreview tests in Chromium for prod stage
5258 uses : nick-fields/retry@v2
59+ id : chromiumLivepreview
60+ continue-on-error : true
5361 with :
5462 timeout_minutes : 15
5563 max_attempts : 3
5664 command : npx cross-env TEST_ENV=livepreview npm run testChromiumDist
5765
5866 - name : Run Playwright LegacyInteg tests in Chromium for prod stage
5967 uses : nick-fields/retry@v2
68+ id : chromiumLegacyInteg
69+ continue-on-error : true
6070 with :
6171 timeout_minutes : 30
6272 max_attempts : 3
63- command : npx cross-env TEST_ENV=LegacyInteg npm run testChromiumDist
73+ command : npx cross-env TEST_ENV=LegacyInteg npm run testChromiumDist
74+
75+ - name : Fail on test runs failed in Chromium Windows (prod sanity)
76+ if : steps.chromiumUnit.outcome == 'failure' || steps.chromiumIntegration.outcome == 'failure' || steps.chromiumMainview.outcome == 'failure' || steps.chromiumLivepreview.outcome == 'failure' || steps.chromiumLegacyInteg.outcome == 'failure'
77+ shell : bash
78+ run : |
79+ echo "Chromium Windows (prod) Playwright tests failed, marking step as failed"
80+ echo "Failed tests:"
81+ if [ "${{ steps.chromiumUnit.outcome }}" == "failure" ]; then
82+ echo "- Run Playwright unit tests in Chromium for prod stage"
83+ fi
84+ if [ "${{ steps.chromiumIntegration.outcome }}" == "failure" ]; then
85+ echo "- Run Playwright integration tests in Chromium for prod stage"
86+ fi
87+ if [ "${{ steps.chromiumMainview.outcome }}" == "failure" ]; then
88+ echo "- Run Playwright mainview tests in Chromium for prod stage"
89+ fi
90+ if [ "${{ steps.chromiumLivepreview.outcome }}" == "failure" ]; then
91+ echo "- Run Playwright livepreview tests in Chromium for prod stage"
92+ fi
93+ if [ "${{ steps.chromiumLegacyInteg.outcome }}" == "failure" ]; then
94+ echo "- Run Playwright LegacyInteg tests in Chromium for prod stage"
95+ fi
96+ exit 1
0 commit comments