From 018677e35bbb0f8a0e92c474c02c60150c59ad8a Mon Sep 17 00:00:00 2001 From: Rodel Date: Fri, 20 May 2022 16:08:49 +0800 Subject: [PATCH] Add step to generate e2e report on CI --- .github/workflows/pr-build-and-e2e-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-build-and-e2e-tests.yml b/.github/workflows/pr-build-and-e2e-tests.yml index 2d03009f2aa..e668ce83022 100644 --- a/.github/workflows/pr-build-and-e2e-tests.yml +++ b/.github/workflows/pr-build-and-e2e-tests.yml @@ -51,6 +51,12 @@ jobs: working-directory: plugins/woocommerce run: pnpx playwright test --config=e2e/playwright.config.js + - name: Generate E2E Test report. + if: always() && ( env.E2E_PLAYWRIGHT == true ) + working-directory: plugins/woocommerce + run: pnpx allure generate --clean e2e/allure-results --output e2e/al +lure-report + - name: Archive (Playwright) E2E test report if: always() && ( env.E2E_PLAYWRIGHT == true ) uses: actions/upload-artifact@v3