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