From 7695ca4e43ae2be14e8717fae8807fbaf0f6df02 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index 6fe500e09..dcb07b025 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -53,10 +53,16 @@ jobs: - name: End-to-end tests | run tests id: e2e-tests + if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} run: | cd e2e-tests/ yarn run cypress run + - name: End-to-end tests | if tests failed, compile html report + run: | + cd e2e-tests/ + node create-cucumber-html-report.js + - name: End-to-end tests | if tests failed, upload report if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} run: |