From d48bcacf02de60a45eac7ce8a5f8e767ccdb0be6 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Tue, 29 Oct 2024 17:50:34 +0000 Subject: [PATCH] Refs #37882 - update tests to npm8 --- .github/workflows/foreman.yml | 2 ++ .github/workflows/js_tests.yml | 2 ++ .github/workflows/plugins_react_tests.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/foreman.yml b/.github/workflows/foreman.yml index 361cb1cb317..c1245a67b9b 100644 --- a/.github/workflows/foreman.yml +++ b/.github/workflows/foreman.yml @@ -93,6 +93,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + - name: use npm 8 + run: npm i -g npm@8 --registry=https://registry.npmjs.org - name: Setup NPM Cache uses: actions/cache@v4 with: diff --git a/.github/workflows/js_tests.yml b/.github/workflows/js_tests.yml index 7501009fb3e..80bccb5f294 100644 --- a/.github/workflows/js_tests.yml +++ b/.github/workflows/js_tests.yml @@ -46,6 +46,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + - name: use npm 8 + run: npm i -g npm@8 --registry=https://registry.npmjs.org - name: Generate npm dependencies package-lock run: npm install --package-lock-only --no-audit - name: Install npm dependencies diff --git a/.github/workflows/plugins_react_tests.yml b/.github/workflows/plugins_react_tests.yml index 7d0f7184b7c..597a92a9f52 100644 --- a/.github/workflows/plugins_react_tests.yml +++ b/.github/workflows/plugins_react_tests.yml @@ -47,6 +47,8 @@ jobs: node-version: ${{ matrix.node }} # We could update the postinstall action for foreman to look for an environment variable for plugin webpack dirs # before kicking off the ruby script to find them, this would eliminate the ruby dep and running `npm install` in plugins. + - name: use npm 8 + run: npm i -g npm@8 --registry=https://registry.npmjs.org - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }}