Use pnpm and update some paths

This commit is contained in:
roykho 2021-11-01 18:30:17 -07:00
parent d1dbfa38ba
commit ac6de4e77b
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 10 additions and 6 deletions

View File

@ -18,16 +18,20 @@ jobs:
- name: Checkout code.
uses: actions/checkout@v2
with:
path: package/woocommerce
ref: trunk
- name: Install prerequisites.
working-directory: package/woocommerce
run: |
npm install
npm install -g pnpm
pnpm install
composer install --no-dev
npm run build:assets
npm install jest
pnpm run build:assets
pnpm install jest
- name: Run smoke test.
working-directory: package/woocommerce/plugins/woocommerce
env:
SMOKE_TEST_URL: ${{ secrets.SMOKE_TEST_URL }}
SMOKE_TEST_ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
@ -45,6 +49,6 @@ jobs:
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
run: |
npx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
npx wc-e2e test:e2e
npx wc-api-tests test api
pnpx wc-e2e test:e2e ./tests/e2e/specs/smoke-tests/update-woocommerce.js
pnpx wc-e2e test:e2e
pnpx wc-api-tests test api