diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index d7279f1606ca..92b23da53fc4 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -148,9 +148,9 @@ jobs: # Spread the work across 2 processes. Why 2? Because that's what you # get in the default GitHub hosting Linux runners. # See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources - npm run build --locale en-us --locale ja --locale fr & + npm run build -- --locale en-us --locale ja --locale fr & build1=$! - npm run build --not-locale en-us --not-locale ja --not-locale fr & + npm run build -- --not-locale en-us --not-locale ja --not-locale fr & build2=$! # You must explicitly specify the job you're waiting-on to ensure diff --git a/.github/workflows/prod-build.yml b/.github/workflows/prod-build.yml index 3d29d2db5298..09a0a35e6ed9 100644 --- a/.github/workflows/prod-build.yml +++ b/.github/workflows/prod-build.yml @@ -193,9 +193,9 @@ jobs: # Spread the work across 2 processes. Why 2? Because that's # what you get in the default GitHub-hosted Linux runners. # See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources - npm run build --locale en-us --locale ja --locale fr & + npm run build -- --locale en-us --locale ja --locale fr & build1=$! - npm run build --not-locale en-us --not-locale ja --not-locale fr & + npm run build -- --not-locale en-us --not-locale ja --not-locale fr & build2=$! # You must explicitly specify the job you're waiting-on to ensure diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index db8eac4d2db4..8ed569173672 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -194,9 +194,9 @@ jobs: # Spread the work across 2 processes. Why 2? Because that's what you # get in the default GitHub hosting Linux runners. # See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources - npm run build --locale en-us --locale ja --locale fr & + npm run build -- --locale en-us --locale ja --locale fr & build1=$! - npm run build --not-locale en-us --not-locale ja --not-locale fr & + npm run build -- --not-locale en-us --not-locale ja --not-locale fr & build2=$! # You must explicitly specify the job you're waiting-on to ensure diff --git a/testing/README.md b/testing/README.md index 98688254cc79..be40f17fcf0e 100644 --- a/testing/README.md +++ b/testing/README.md @@ -36,9 +36,9 @@ The last command is just an alias for `jest` so you can run, for example: ```sh # See jest help -npm run test:testing --help +npm run test:testing -- --help # Interactive re-run every time a file is saved and exit on the first error -npm run test:testing --watch --bail +npm run test:testing -- --watch --bail # Alias for searching by test file name. I.e. only run `index.test.js` npm run test:testing index ``` @@ -77,9 +77,9 @@ some quick tips to get you started. ```sh # Just run the test by a test description string -npm run test:headless -g 'show your settings page' +npm run test:headless -- -g 'show your settings page' # Make it NOT headless by making a browser pop up for each test -npm run test:headless --headed +npm run test:headless -- --headed # Exclusively run the tests in headless.sitesearch.spec.js only playwright test headless.sitesearch ``` diff --git a/testing/scripts/functional-test.sh b/testing/scripts/functional-test.sh index 9c62bcb34d2a..1054a69ad975 100755 --- a/testing/scripts/functional-test.sh +++ b/testing/scripts/functional-test.sh @@ -6,4 +6,4 @@ export ENV_FILE=testing/.env npm run build:prepare npm run build -npm run test:testing $@ +npm run test:testing -- $@ diff --git a/tool/cli.js b/tool/cli.js index 7d1150663cb4..38f32763e1ae 100644 --- a/tool/cli.js +++ b/tool/cli.js @@ -633,7 +633,7 @@ program ) ); logger.info( - `Reset ${outfile} by running: npm run tool popularities --refresh` + `Reset ${outfile} by running: npm run tool popularities -- --refresh` ); return; }