diff --git a/.github/workflows/regression-test-css.yml b/.github/workflows/regression-test-css.yml index cbdc967d..2abb0942 100644 --- a/.github/workflows/regression-test-css.yml +++ b/.github/workflows/regression-test-css.yml @@ -49,7 +49,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-google-lighthouse-based.yml b/.github/workflows/regression-test-google-lighthouse-based.yml index 9c69fb48..a4d9abd2 100644 --- a/.github/workflows/regression-test-google-lighthouse-based.yml +++ b/.github/workflows/regression-test-google-lighthouse-based.yml @@ -33,7 +33,7 @@ jobs: with: node-version: '20.x' - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-html.yml b/.github/workflows/regression-test-html.yml index a89d7bb7..d9041061 100644 --- a/.github/workflows/regression-test-html.yml +++ b/.github/workflows/regression-test-html.yml @@ -49,7 +49,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-http.yml b/.github/workflows/regression-test-http.yml index c2aaa9c3..1d6d229e 100644 --- a/.github/workflows/regression-test-http.yml +++ b/.github/workflows/regression-test-http.yml @@ -47,7 +47,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-pa11y.yml b/.github/workflows/regression-test-pa11y.yml index 623147f7..b8b5eba5 100644 --- a/.github/workflows/regression-test-pa11y.yml +++ b/.github/workflows/regression-test-pa11y.yml @@ -34,7 +34,7 @@ jobs: with: node-version: '20.x' - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev # Havn't yet been able to start Google Chrome in headless mode in pa11y since move to Chrome in Pa11y 5 - if: ${{ matrix.os == 'ubuntu-20.04' }} name: RUNNING TEST - LINUX diff --git a/.github/workflows/regression-test-sitespeed.yml b/.github/workflows/regression-test-sitespeed.yml index 5bf02b17..424417da 100644 --- a/.github/workflows/regression-test-sitespeed.yml +++ b/.github/workflows/regression-test-sitespeed.yml @@ -63,7 +63,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-software.yml b/.github/workflows/regression-test-software.yml index f0eda943..5e208f76 100644 --- a/.github/workflows/regression-test-software.yml +++ b/.github/workflows/regression-test-software.yml @@ -44,7 +44,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-tracking.yml b/.github/workflows/regression-test-tracking.yml index 3c946cb0..c3b77cbf 100644 --- a/.github/workflows/regression-test-tracking.yml +++ b/.github/workflows/regression-test-tracking.yml @@ -99,7 +99,7 @@ jobs: name: Setup GeckoDriver (Used for Selenium) run: wget -q -O - https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-linux64.tar.gz | tar -xvzf - - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/regression-test-ylt.yml b/.github/workflows/regression-test-ylt.yml index 95515846..10ab5586 100644 --- a/.github/workflows/regression-test-ylt.yml +++ b/.github/workflows/regression-test-ylt.yml @@ -39,7 +39,7 @@ jobs: run: sudo apt-get install libjpeg-dev libfontconfig shell: bash - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - if: ${{ matrix.os == 'ubuntu-latest' }} name: RUNNING TEST - LINUX run: | diff --git a/.github/workflows/update-software.yml b/.github/workflows/update-software.yml index 0f691341..3d78cf38 100644 --- a/.github/workflows/update-software.yml +++ b/.github/workflows/update-software.yml @@ -42,7 +42,7 @@ jobs: sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - name: Setup npm packages - run: npm install --production + run: npm install --omit=dev - name: Update USER_AGENT in our defaults/settings.json run: python update_software.py -b - name: Checkout advisory-database repo diff --git a/Dockerfile b/Dockerfile index 06ca47fd..6492bb78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,7 +62,7 @@ RUN chown --recursive sitespeedio:sitespeedio /usr/src/runner # Run everything after as non-privileged user. USER sitespeedio -RUN npm install --production +RUN npm install --omit=dev RUN python3.12 -m pip install -r requirements.txt --break-system-packages && \ python3.12 -m pip install --upgrade pip --break-system-packages && \ diff --git a/docs/getting-started-local.md b/docs/getting-started-local.md index 1491b973..4491183b 100644 --- a/docs/getting-started-local.md +++ b/docs/getting-started-local.md @@ -13,7 +13,7 @@ it is also best/fastest when wanting to contribute with new tests, translations - Download and install Node.js (version 20.x) - Download and install Google Chrome browser * Download and install Mozilla Firefox -- Install required npm packages by typing following and hit Enter: `npm install --production` +- Install required npm packages by typing following and hit Enter: `npm install --omit=dev` - Validate that core functionality is working by typing following and hit Enter `python default.py -h` - If the output looks something like example in [options and arguments](getting-started.md#options-and-arguments) you have successfully setup the general parts of webperf-core. - Please look at/return to the [specific test](tests/README.md) you want to run to make sure it doesn't require more steps. diff --git a/docs/tests/css.md b/docs/tests/css.md index 8176c4c2..b4569304 100644 --- a/docs/tests/css.md +++ b/docs/tests/css.md @@ -53,7 +53,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` ##### Windows Specific diff --git a/docs/tests/google-lighthouse-based.md b/docs/tests/google-lighthouse-based.md index eb39fa52..9a8f4fd5 100644 --- a/docs/tests/google-lighthouse-based.md +++ b/docs/tests/google-lighthouse-based.md @@ -35,7 +35,7 @@ Follow the instructions below depending on what you choose. Benefit of this option is that you can use it to test pre production urls like your AcceptanceTest environment. * Download and install Node.js (version 20.x) -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) ## Read more diff --git a/docs/tests/html.md b/docs/tests/html.md index 06e1c97c..bf737f07 100644 --- a/docs/tests/html.md +++ b/docs/tests/html.md @@ -43,7 +43,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` ##### Windows Specific diff --git a/docs/tests/http.md b/docs/tests/http.md index 4265cc67..7d7e258d 100644 --- a/docs/tests/http.md +++ b/docs/tests/http.md @@ -71,7 +71,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Download and install Node.js (version 20.x) * Download and install Google Chrome browser * Download and install Mozilla Firefox browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` ##### Windows Specific diff --git a/docs/tests/pa11y.md b/docs/tests/pa11y.md index 73c15fc9..f80be919 100644 --- a/docs/tests/pa11y.md +++ b/docs/tests/pa11y.md @@ -44,7 +44,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Follow [general local setup steps for this repository](../getting-started-local.md) * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) ## FAQ diff --git a/docs/tests/sitespeed.md b/docs/tests/sitespeed.md index 511315a4..5ecfe2e1 100644 --- a/docs/tests/sitespeed.md +++ b/docs/tests/sitespeed.md @@ -73,7 +73,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Install ffmpeg `sudo apt install ffmpeg` * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` (You can always see [GitHub Actions SiteSpeed](../../.github/workflows/regression-test-sitespeed.yml) for all steps required line by line) @@ -86,7 +86,7 @@ Read more on the [general page for github actions](../getting-started-github-act * Download and Install ffmpeg `https://ffmpeg.org/download.html#build-windows` * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` #### Using Docker image diff --git a/docs/tests/software.md b/docs/tests/software.md index 86e63884..53d242ee 100644 --- a/docs/tests/software.md +++ b/docs/tests/software.md @@ -140,7 +140,7 @@ TODO: Add links to blogs and articles showing how to remove info regarding what * Download and install Node.js (version 20.x) * Download and install Google Chrome browser -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` ##### Windows Specific diff --git a/docs/tests/tracking.md b/docs/tests/tracking.md index 93381387..e2d8a7ee 100644 --- a/docs/tests/tracking.md +++ b/docs/tests/tracking.md @@ -143,7 +143,7 @@ This section has not been written yet. * Download and install Node.js (version 20.x) * Download and install Google Chrome browser * Download and install Mozilla Firefox -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) * Set `sitespeed_use_docker = False` in your `config.py` ##### Windows Specific diff --git a/docs/tests/yellowlab.md b/docs/tests/yellowlab.md index 9410c31f..af16a79f 100644 --- a/docs/tests/yellowlab.md +++ b/docs/tests/yellowlab.md @@ -32,11 +32,11 @@ Read more on the [general page for github actions](../getting-started-github-act * Download and install Node.js (version 20.x) * Download and install node-gyp `npm install -g node-gyp` * Setup libjpeg and fontconfig `sudo apt-get install libjpeg-dev libfontconfig` -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) ##### On Windows: * Download and install Node.js (version 20.x) -* Install NPM packages ( `npm install --production` ) +* Install NPM packages ( `npm install --omit=dev` ) ## FAQ