From 3331818bc009e9d91f1ac8dd217bcdd8ea863213 Mon Sep 17 00:00:00 2001 From: sangeetha-nayak Date: Mon, 30 Oct 2023 11:01:20 +0530 Subject: [PATCH] run only ecommerce module tests --- .github/workflows/sample-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/sample-test.yml b/.github/workflows/sample-test.yml index 4a57780b..4f3b7a18 100644 --- a/.github/workflows/sample-test.yml +++ b/.github/workflows/sample-test.yml @@ -135,16 +135,26 @@ jobs: - name: Configure WordPress + run: | + pwd working-directory: ./modules/${{ github.repository }} + run: | + pwd run: echo '{"config":{"WP_DEBUG_DISPLAY":false},"plugins":["${{ steps.workflow.outputs.DIST }}/${{ steps.workflow.outputs.PACKAGE }}"]}' > .wp-env.override.json - name: Install WordPress + working-directory: ./modules/${{ github.repository }} + run: | + pwd run: npx wp-env start # - name: Run PHPUnit Tests # run: npm run test:unit - name: Run Cypress Tests + working-directory: ./modules/${{ github.repository }} + run: | + pwd run: npx cypress run - name: Store screenshots of test failures