Use Nx commands for build and e2e tests
This commit is contained in:
parent
f940d049d6
commit
142dcedc36
|
@ -41,16 +41,15 @@ jobs:
|
||||||
path: package/woocommerce
|
path: package/woocommerce
|
||||||
|
|
||||||
- name: Install PNPM and install dependencies
|
- name: Install PNPM and install dependencies
|
||||||
working-directory: package/woocommerce
|
|
||||||
run: |
|
run: |
|
||||||
npm install -g pnpm
|
npm install -g pnpm
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
- name: Load docker images and start containers.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
run: pnpm nx docker-up woocommerce
|
||||||
run: pnpx wc-e2e docker:up
|
|
||||||
|
|
||||||
- name: Move current directory to code. We will install zip file in this dir later.
|
- 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
|
run: mv ./package/woocommerce/plugins/woocommerce/* ./code/woocommerce
|
||||||
|
|
||||||
- name: Download WooCommerce ZIP.
|
- name: Download WooCommerce ZIP.
|
||||||
|
@ -65,12 +64,6 @@ jobs:
|
||||||
unzip woocommerce.zip -d woocommerce
|
unzip woocommerce.zip -d woocommerce
|
||||||
mv woocommerce/woocommerce/* ../package/woocommerce/plugins/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.
|
- name: Run tests command.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
env:
|
env:
|
||||||
|
@ -81,5 +74,5 @@ jobs:
|
||||||
USER_KEY: ${{ secrets.PR_E2E_TEST_ADMIN_USER }}
|
USER_KEY: ${{ secrets.PR_E2E_TEST_ADMIN_USER }}
|
||||||
USER_SECRET: ${{ secrets.PR_E2E_TEST_ADMIN_PASSWORD }}
|
USER_SECRET: ${{ secrets.PR_E2E_TEST_ADMIN_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e
|
pnpm nx test-e2e woocommerce
|
||||||
pnpx wc-api-tests test api
|
pnpx wc-api-tests test api
|
||||||
|
|
Loading…
Reference in New Issue