From 2a5facd297ef2b1d0c3be75d6632fe5d5e2f91b2 Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 5 Jul 2023 20:06:54 +0200 Subject: [PATCH] move e2e test htmlreport creation to failure step --- .github/workflows/test_e2e.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index 425ac5dbf..6fe500e09 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -56,10 +56,12 @@ jobs: run: | cd e2e-tests/ yarn run cypress run - node create-cucumber-html-report.js - name: End-to-end tests | if tests failed, upload report if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} + run: | + cd e2e-tests/ + node create-cucumber-html-report.js uses: actions/upload-artifact@v3 with: name: cypress-report-PR-${{ github.event.number }}