From 2aeab246508d908cbcef36ff3f618658763629fc Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Mon, 30 Oct 2023 12:37:19 +0530 Subject: [PATCH] delete existing wp --- .github/workflows/sample-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sample-test.yml b/.github/workflows/sample-test.yml index f6c7d6f1..2da56364 100644 --- a/.github/workflows/sample-test.yml +++ b/.github/workflows/sample-test.yml @@ -133,6 +133,9 @@ jobs: # working-directory: ${{ steps.workflow.outputs.DIST }} # run: find . + - name: Destroy Existing Wp-env + run: npx wp-env destroy + - name: Configure WordPress run: echo '{"config":{"WP_DEBUG_DISPLAY":false},"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json @@ -145,9 +148,7 @@ jobs: - name: Run Cypress Tests working-directory: ./modules/${{ github.repository }} - run: | - pwd - npx cypress run + run: npx cypress run - name: Store screenshots of test failures if: ${{ failure() }}