Skip to content

Commit

Permalink
Refs #37882 - update tests to npm8
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Oct 29, 2024
1 parent 99923d6 commit d48bcac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/foreman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/js_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/plugins_react_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d48bcac

Please sign in to comment.