Updating all instances of pnpx to pnpm dlx/exec
This commit is contained in:
parent
1e3a3d8af5
commit
1c162a14d2
|
@ -68,7 +68,7 @@ jobs:
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
- name: Load docker images and start containers.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
run: pnpx wc-e2e docker:up
|
run: pnpm exec wc-e2e docker:up
|
||||||
|
|
||||||
- name: Run tests command.
|
- name: Run tests command.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
|
@ -76,7 +76,7 @@ jobs:
|
||||||
WC_E2E_SCREENSHOTS: 1
|
WC_E2E_SCREENSHOTS: 1
|
||||||
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
|
E2E_SLACK_TOKEN: ${{ secrets.E2E_SLACK_TOKEN }}
|
||||||
E2E_SLACK_CHANNEL: ${{ secrets.E2E_SLACK_CHANNEL }}
|
E2E_SLACK_CHANNEL: ${{ secrets.E2E_SLACK_CHANNEL }}
|
||||||
run: pnpx wc-e2e test:e2e
|
run: pnpm exec wc-e2e test:e2e
|
||||||
|
|
||||||
- name: Archive E2E test screenshots
|
- name: Archive E2E test screenshots
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -127,7 +127,7 @@ jobs:
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
- name: Load docker images and start containers.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
run: pnpx wc-e2e docker:up
|
run: pnpm exec wc-e2e docker:up
|
||||||
|
|
||||||
- name: Run tests command.
|
- name: Run tests command.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
|
@ -135,7 +135,7 @@ jobs:
|
||||||
BASE_URL: http://localhost:8084
|
BASE_URL: http://localhost:8084
|
||||||
USER_KEY: admin
|
USER_KEY: admin
|
||||||
USER_SECRET: password
|
USER_SECRET: password
|
||||||
run: pnpx wc-api-tests test api
|
run: pnpm exec wc-api-tests test api
|
||||||
|
|
||||||
- name: Upload API test report
|
- name: Upload API test report
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -190,7 +190,7 @@ jobs:
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
- name: Load docker images and start containers.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
run: pnpx wc-e2e docker:up
|
run: pnpm exec wc-e2e docker:up
|
||||||
|
|
||||||
- name: Install k6
|
- name: Install k6
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
UPDATE_WC: 1
|
UPDATE_WC: 1
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
||||||
|
|
||||||
- name: Post Smoke tests results comment on PR
|
- name: Post Smoke tests results comment on PR
|
||||||
if: always()
|
if: always()
|
||||||
|
@ -86,7 +86,7 @@ jobs:
|
||||||
UPDATE_WC: 1
|
UPDATE_WC: 1
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e
|
pnpm exec wc-e2e test:e2e
|
||||||
|
|
||||||
- name: Post E2E tests results comment on PR
|
- name: Post E2E tests results comment on PR
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -7,7 +7,6 @@ jobs:
|
||||||
name: Daily smoke test on trunk.
|
name: Daily smoke test on trunk.
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Create dirs.
|
- name: Create dirs.
|
||||||
run: |
|
run: |
|
||||||
mkdir -p code/woocommerce
|
mkdir -p code/woocommerce
|
||||||
|
@ -49,9 +48,9 @@ jobs:
|
||||||
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
||||||
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
||||||
pnpx wc-e2e test:e2e
|
pnpm exec wc-e2e test:e2e
|
||||||
pnpx wc-api-tests test api
|
pnpm exec wc-api-tests test api
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build zip for PR
|
name: Build zip for PR
|
||||||
|
@ -117,7 +116,7 @@ jobs:
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
- name: Load docker images and start containers.
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
working-directory: package/woocommerce/plugins/woocommerce
|
||||||
run: pnpx wc-e2e docker:up
|
run: pnpm exec 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.
|
||||||
run: mv ./package/woocommerce/plugins/woocommerce/* ./code/woocommerce
|
run: mv ./package/woocommerce/plugins/woocommerce/* ./code/woocommerce
|
||||||
|
@ -150,5 +149,5 @@ jobs:
|
||||||
PLUGIN_NAME: ${{ matrix.plugin }}
|
PLUGIN_NAME: ${{ matrix.plugin }}
|
||||||
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e tests/e2e/specs/smoke-tests/upload-plugin.js
|
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/upload-plugin.js
|
||||||
pnpx wc-e2e test:e2e
|
pnpm exec wc-e2e test:e2e
|
||||||
|
|
|
@ -10,7 +10,6 @@ jobs:
|
||||||
name: Daily smoke test on release.
|
name: Daily smoke test on release.
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Create dirs.
|
- name: Create dirs.
|
||||||
run: |
|
run: |
|
||||||
mkdir -p code/woocommerce
|
mkdir -p code/woocommerce
|
||||||
|
@ -53,17 +52,16 @@ jobs:
|
||||||
USER_KEY: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
USER_KEY: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
||||||
USER_SECRET: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
USER_SECRET: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
||||||
pnpx wc-e2e test:e2e
|
pnpm exec wc-e2e test:e2e
|
||||||
pnpx wc-api-tests test api
|
pnpm exec wc-api-tests test api
|
||||||
test-wp-version:
|
test-wp-version:
|
||||||
name: Smoke test on L-${{ matrix.wp }} WordPress version
|
name: Smoke test on L-${{ matrix.wp }} WordPress version
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
wp: [ '1', '2' ]
|
wp: ['1', '2']
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Create dirs.
|
- name: Create dirs.
|
||||||
run: |
|
run: |
|
||||||
mkdir -p code/woocommerce
|
mkdir -p code/woocommerce
|
||||||
|
@ -195,5 +193,5 @@ jobs:
|
||||||
PLUGIN_NAME: ${{ matrix.plugin }}
|
PLUGIN_NAME: ${{ matrix.plugin }}
|
||||||
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
pnpx wc-e2e test:e2e tests/e2e/specs/smoke-tests/upload-plugin.js
|
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/upload-plugin.js
|
||||||
pnpx wc-e2e test:e2e
|
pnpm exec wc-e2e test:e2e
|
||||||
|
|
|
@ -38,7 +38,7 @@ report() {
|
||||||
if [[ $REPORT_EXIT_CODE -eq 0 && $GITHUB_ACTIONS != "true" ]]; then
|
if [[ $REPORT_EXIT_CODE -eq 0 && $GITHUB_ACTIONS != "true" ]]; then
|
||||||
echo "To view the report on your browser, run:"
|
echo "To view the report on your browser, run:"
|
||||||
echo ""
|
echo ""
|
||||||
echo "pnpx allure open \"$ALLURE_REPORT_DIR\""
|
echo "pnpm dlx allure open \"$ALLURE_REPORT_DIR\""
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ The E2E environment has the following methods to let us control Jest's overall b
|
||||||
**NOTE:** The amount of times failed tests are retried can also be set using the `E2E_RETRY_TIMES` environment variable when executing tests. This can be done using the command below:
|
**NOTE:** The amount of times failed tests are retried can also be set using the `E2E_RETRY_TIMES` environment variable when executing tests. This can be done using the command below:
|
||||||
|
|
||||||
```
|
```
|
||||||
E2E_RETRY_TIMES=2 pnpx wc-e2e test:e2e
|
E2E_RETRY_TIMES=2 pnpm exec wc-e2e test:e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Test Screenshots
|
#### Test Screenshots
|
||||||
|
|
|
@ -52,7 +52,7 @@ wp plugin install wp-mail-logging --activate
|
||||||
The container build script supports an initialization script parameter
|
The container build script supports an initialization script parameter
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
pnpx wc-e2e docker:up plugins/woocommerce/tests/e2e/docker/init-wp-beta.sh
|
pnpm exec wc-e2e docker:up plugins/woocommerce/tests/e2e/docker/init-wp-beta.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
This script updates WordPress to the latest nightly point release
|
This script updates WordPress to the latest nightly point release
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"options": {
|
"options": {
|
||||||
"commands": [
|
"commands": [
|
||||||
{
|
{
|
||||||
"command": "pnpx grunt assets",
|
"command": "pnpm dlx grunt assets",
|
||||||
"forwardAllArgs": false
|
"forwardAllArgs": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -25,11 +25,11 @@
|
||||||
"options": {
|
"options": {
|
||||||
"commands": [
|
"commands": [
|
||||||
{
|
{
|
||||||
"command": "pnpx grunt eslint",
|
"command": "pnpm dlx grunt eslint",
|
||||||
"forwardAllArgs": false
|
"forwardAllArgs": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "pnpx grunt stylelint",
|
"command": "pnpm dlx grunt stylelint",
|
||||||
"forwardAllArgs": false
|
"forwardAllArgs": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
"build:core": "pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets && pnpm run makepot",
|
"build:core": "pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets && pnpm run makepot",
|
||||||
"build:zip": "pnpm run build",
|
"build:zip": "pnpm run build",
|
||||||
"lint:js": "eslint assets/js --ext=js",
|
"lint:js": "eslint assets/js --ext=js",
|
||||||
"docker:down": "pnpx wc-e2e docker:down",
|
"docker:down": "pnpm exec wc-e2e docker:down",
|
||||||
"docker:ssh": "pnpx wc-e2e docker:ssh",
|
"docker:ssh": "pnpm exec wc-e2e docker:ssh",
|
||||||
"docker:up": "pnpx wc-e2e docker:up",
|
"docker:up": "pnpm exec wc-e2e docker:up",
|
||||||
"test:api": "ALLURE_OUTPUT_DIR=\"$PWD/tests/api\" pnpx wc-api-tests test api",
|
"test:api": "ALLURE_OUTPUT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
|
||||||
"make:collection": "pnpx wc-api-tests make:collection",
|
"make:collection": "pnpm exec wc-api-tests make:collection",
|
||||||
"test:e2e": "pnpx wc-e2e test:e2e",
|
"test:e2e": "pnpm exec wc-e2e test:e2e",
|
||||||
"test:e2e-debug": "pnpx wc-e2e test:e2e-debug",
|
"test:e2e-debug": "pnpm exec wc-e2e test:e2e-debug",
|
||||||
"test:e2e-dev": "pnpx wc-e2e test:e2e-dev",
|
"test:e2e-dev": "pnpm exec wc-e2e test:e2e-dev",
|
||||||
"test:unit": "./vendor/bin/phpunit -c ./phpunit.xml",
|
"test:unit": "./vendor/bin/phpunit -c ./phpunit.xml",
|
||||||
"makepot": "composer run-script makepot",
|
"makepot": "composer run-script makepot",
|
||||||
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js",
|
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js",
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
"watch-assets": {
|
"watch-assets": {
|
||||||
"executor": "@nrwl/workspace:run-commands",
|
"executor": "@nrwl/workspace:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
"command": "pnpx grunt watch",
|
"command": "pnpm dlx grunt watch",
|
||||||
"cwd": "plugins/woocommerce/legacy"
|
"cwd": "plugins/woocommerce/legacy"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -193,7 +193,7 @@ Sometimes tests may fail for different reasons such as network issues, or lost c
|
||||||
|
|
||||||
```
|
```
|
||||||
cd plugins/woocommerce
|
cd plugins/woocommerce
|
||||||
E2E_RETRY_TIMES=2 pnpx wc-e2e test:e2e
|
E2E_RETRY_TIMES=2 pnpm exec wc-e2e test:e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### How to run tests in debug mode
|
### How to run tests in debug mode
|
||||||
|
@ -212,7 +212,7 @@ To run an individual test, use the direct path to the spec. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd plugins/woocommerce
|
cd plugins/woocommerce
|
||||||
pnpx wc-e2e test:e2e ./tests/e2e/specs/wp-admin/create-order.test.js
|
pnpm exec wc-e2e test:e2e ./tests/e2e/specs/wp-admin/create-order.test.js
|
||||||
```
|
```
|
||||||
|
|
||||||
### How to skip tests
|
### How to skip tests
|
||||||
|
|
Loading…
Reference in New Issue