diff --git a/.github/workflows/pr-build-and-e2e-tests.yml b/.github/workflows/pr-build-and-e2e-tests.yml index 64720753d5a..2a42a5f64e4 100644 --- a/.github/workflows/pr-build-and-e2e-tests.yml +++ b/.github/workflows/pr-build-and-e2e-tests.yml @@ -41,16 +41,15 @@ jobs: path: package/woocommerce - name: Install PNPM and install dependencies - working-directory: package/woocommerce run: | npm install -g pnpm pnpm install - name: Load docker images and start containers. - working-directory: package/woocommerce/plugins/woocommerce - run: pnpx wc-e2e docker:up + run: pnpm nx docker-up woocommerce - name: Move current directory to code. We will install zip file in this dir later. + working-directory: package/woocommerce/plugins/woocommerce run: mv ./package/woocommerce/plugins/woocommerce/* ./code/woocommerce - name: Download WooCommerce ZIP. @@ -65,12 +64,6 @@ jobs: unzip woocommerce.zip -d woocommerce mv woocommerce/woocommerce/* ../package/woocommerce/plugins/woocommerce/ - - name: Install dependencies again - working-directory: package/woocommerce - run: | - npm install -g pnpm - pnpm install - - name: Run tests command. working-directory: package/woocommerce/plugins/woocommerce env: @@ -81,5 +74,5 @@ jobs: USER_KEY: ${{ secrets.PR_E2E_TEST_ADMIN_USER }} USER_SECRET: ${{ secrets.PR_E2E_TEST_ADMIN_PASSWORD }} run: | - pnpx wc-e2e test:e2e + pnpm nx test-e2e woocommerce pnpx wc-api-tests test api