chore(repo): update node version on nightly (#28622)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
This commit is contained in:
Miroslav Jonaš 2024-10-28 13:32:28 +01:00 committed by GitHub
parent f84b6e5c97
commit 0d2a696443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 243 additions and 42 deletions

View File

@ -25,35 +25,43 @@ jobs:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
node_version: node_version:
- 20
- 18 - 18
- 20
- 22
# - 23
exclude: exclude:
# run just node v20 on macos # run just node v20 on macos
- os: macos-latest - os: macos-latest
node_version: 18 node_version: 18
- os: macos-latest
node_version: 22
# - os: macos-latest
# node_version: 23
name: Cache install (${{ matrix.os }}, node v${{ matrix.node_version }}) name: Cache install (${{ matrix.os }}, node v${{ matrix.node_version }})
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install PNPM - uses: pnpm/action-setup@v4
run: | name: Install pnpm
npm install -g @pnpm/exe@8 with:
version: 9.8.0
run_install: false
- name: Set node - name: Set node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
cache: 'pnpm' cache: 'pnpm'
- name: Cache node_modules - name: Cache node_modules
id: cache-modules id: cache-modules
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
lookup-only: true lookup-only: true
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }} key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Ensure Python setuptools Installed on Macos - name: Ensure Python setuptools Installed on Macos
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-latest' }}
@ -71,7 +79,7 @@ jobs:
- name: Cache Homebrew - name: Cache Homebrew
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-latest' }}
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
lookup-only: true lookup-only: true
path: ${{ steps.homebrew-cache-dir-path.outputs.dir }} path: ${{ steps.homebrew-cache-dir-path.outputs.dir }}
@ -81,7 +89,7 @@ jobs:
- name: Cache Cypress - name: Cache Cypress
id: cache-cypress id: cache-cypress
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
lookup-only: true lookup-only: true
path: '${{ github.workspace }}/.cypress' path: '${{ github.workspace }}/.cypress'
@ -104,8 +112,10 @@ jobs:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
node_version: node_version:
- 20
- 18 - 18
- 20
- 22
# - 23
package_manager: package_manager:
- npm - npm
- yarn - yarn
@ -266,6 +276,106 @@ jobs:
project: e2e-vue project: e2e-vue
- node_version: 18 - node_version: 18
project: e2e-webpack project: e2e-webpack
- node_version: 22
project: e2e-angular
- node_version: 22
project: e2e-cypress
- node_version: 22
project: e2e-detox
- node_version: 22
project: e2e-esbuild
- node_version: 22
project: e2e-expo
- node_version: 22
project: e2e-gradle
- node_version: 22
project: e2e-jest
- node_version: 22
project: e2e-js
- node_version: 22
project: e2e-eslint
- node_version: 22
project: e2e-next
- node_version: 22
project: e2e-node
- node_version: 22
project: e2e-nuxt
- node_version: 22
project: e2e-nx-init
- node_version: 22
project: e2e-nx
- node_version: 22
project: e2e-plugin
- node_version: 22
project: e2e-playwright
- node_version: 22
project: e2e-react
- node_version: 22
project: e2e-react-native
- node_version: 22
project: e2e-web
- node_version: 22
project: e2e-remix
- node_version: 22
project: e2e-rollup
- node_version: 22
project: e2e-storybook
- node_version: 22
project: e2e-vite
- node_version: 22
project: e2e-vue
- node_version: 22
project: e2e-webpack
# - node_version: 23
# project: e2e-angular
# - node_version: 23
# project: e2e-cypress
# - node_version: 23
# project: e2e-detox
# - node_version: 23
# project: e2e-esbuild
# - node_version: 23
# project: e2e-expo
# - node_version: 23
# project: e2e-gradle
# - node_version: 23
# project: e2e-jest
# - node_version: 23
# project: e2e-js
# - node_version: 23
# project: e2e-eslint
# - node_version: 23
# project: e2e-next
# - node_version: 23
# project: e2e-node
# - node_version: 23
# project: e2e-nuxt
# - node_version: 23
# project: e2e-nx-init
# - node_version: 23
# project: e2e-nx
# - node_version: 23
# project: e2e-plugin
# - node_version: 23
# project: e2e-playwright
# - node_version: 23
# project: e2e-react
# - node_version: 23
# project: e2e-react-native
# - node_version: 23
# project: e2e-web
# - node_version: 23
# project: e2e-remix
# - node_version: 23
# project: e2e-rollup
# - node_version: 23
# project: e2e-storybook
# - node_version: 23
# project: e2e-vite
# - node_version: 23
# project: e2e-vue
# - node_version: 23
# project: e2e-webpack
# run just npm v20 on macos # run just npm v20 on macos
- os: macos-latest - os: macos-latest
package_manager: yarn package_manager: yarn
@ -273,6 +383,10 @@ jobs:
package_manager: pnpm package_manager: pnpm
- os: macos-latest - os: macos-latest
node_version: 18 node_version: 18
- os: macos-latest
node_version: 22
# - os: macos-latest
# node_version: 23
fail-fast: false fail-fast: false
name: ${{ matrix.os_name }}/${{ matrix.package_manager }}/${{ matrix.node_version }} ${{ join(matrix.project) }} name: ${{ matrix.os_name }}/${{ matrix.package_manager }}/${{ matrix.node_version }} ${{ join(matrix.project) }}
@ -283,22 +397,24 @@ jobs:
- name: Prepare dir for output - name: Prepare dir for output
run: mkdir -p outputs run: mkdir -p outputs
- name: Install PNPM - uses: pnpm/action-setup@v4
run: | name: Install pnpm
npm install -g @pnpm/exe@8 with:
version: 9.8.0
run_install: false
- name: Use Node.js ${{ matrix.node_version }} - name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
cache: 'pnpm' cache: 'pnpm'
- name: Cache node_modules - name: Cache node_modules
id: cache-modules id: cache-modules
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }} key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install packages - name: Install packages
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
@ -322,7 +438,7 @@ jobs:
- name: Cache Homebrew - name: Cache Homebrew
if: ${{ matrix.os == 'macos-latest' }} if: ${{ matrix.os == 'macos-latest' }}
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ${{ steps.homebrew-cache-dir-path.outputs.dir }} path: ${{ steps.homebrew-cache-dir-path.outputs.dir }}
key: brew-${{ matrix.node_version }} key: brew-${{ matrix.node_version }}
@ -331,7 +447,7 @@ jobs:
- name: Cache Cypress - name: Cache Cypress
id: cache-cypress id: cache-cypress
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: '${{ github.workspace }}/.cypress' path: '${{ github.workspace }}/.cypress'
key: ${{ runner.os }}-cypress key: ${{ runner.os }}-cypress
@ -396,10 +512,12 @@ jobs:
echo "$matrix" > $path echo "$matrix" > $path
- name: Upload matrix config - name: Upload matrix config
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: ${{ always() }} if: ${{ always() }}
with: with:
name: outputs name: outputs
overwrite: true
if-no-files-found: 'ignore'
path: ${{ steps.save-matrix.outputs.path }} path: ${{ steps.save-matrix.outputs.path }}
- name: Setup tmate session - name: Setup tmate session
@ -418,7 +536,7 @@ jobs:
codeowners: ${{ steps.process-json.outputs.CODEOWNERS }} codeowners: ${{ steps.process-json.outputs.CODEOWNERS }}
steps: steps:
- name: Load outputs - name: Load outputs
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: outputs name: outputs
path: outputs path: outputs

View File

@ -22,22 +22,24 @@ jobs:
strategy: strategy:
matrix: matrix:
node_version: node_version:
- 20
- 18 - 18
- 20
- 22
# - 23
name: Cache install (node v${{ matrix.node_version }}) name: Cache install (node v${{ matrix.node_version }})
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
with: with:
version: 8 version: 9.8.0
run_install: false run_install: false
- name: Set node - name: Set node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
cache: 'pnpm' cache: 'pnpm'
@ -48,14 +50,15 @@ jobs:
with: with:
lookup-only: true lookup-only: true
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }} key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install packages - name: Install packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Cache Cypress - name: Cache Cypress
id: cache-cypress id: cache-cypress
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
lookup-only: true lookup-only: true
path: '${{ github.workspace }}/.cypress' path: '${{ github.workspace }}/.cypress'
@ -74,8 +77,10 @@ jobs:
strategy: strategy:
matrix: matrix:
node_version: node_version:
- 20
- 18 - 18
- 20
- 22
# - 23
package_manager: package_manager:
- npm - npm
project: project:
@ -109,14 +114,8 @@ jobs:
codeowners: 'S04SS457V38' codeowners: 'S04SS457V38'
- project: e2e-cypress - project: e2e-cypress
codeowners: 'S04T16BTJJY' codeowners: 'S04T16BTJJY'
- project: e2e-detox
codeowners: 'S04TNCNJG5N'
- project: e2e-esbuild - project: e2e-esbuild
codeowners: 'S04SJ6HHP0X' codeowners: 'S04SJ6HHP0X'
- project: e2e-expo
codeowners: 'S04TNCNJG5N'
- project: e2e-gradle
codeowners: 'S04TNCNJG5N'
- project: e2e-jest - project: e2e-jest
codeowners: 'S04T16BTJJY' codeowners: 'S04T16BTJJY'
- project: e2e-js - project: e2e-js
@ -139,8 +138,6 @@ jobs:
codeowners: 'S04SYHYKGNP' codeowners: 'S04SYHYKGNP'
- project: e2e-react - project: e2e-react
codeowners: 'S04TNCNJG5N' codeowners: 'S04TNCNJG5N'
- project: e2e-react-native
codeowners: 'S04TNCNJG5N'
- project: e2e-web - project: e2e-web
codeowners: 'S04SJ6PL98X' codeowners: 'S04SJ6PL98X'
- project: e2e-rollup - project: e2e-rollup
@ -205,6 +202,90 @@ jobs:
project: e2e-vue project: e2e-vue
- node_version: 18 - node_version: 18
project: e2e-webpack project: e2e-webpack
- node_version: 22
project: e2e-angular
- node_version: 22
project: e2e-cypress
- node_version: 22
project: e2e-esbuild
- node_version: 22
project: e2e-jest
- node_version: 22
project: e2e-js
- node_version: 22
project: e2e-eslint
- node_version: 22
project: e2e-next
- node_version: 22
project: e2e-node
- node_version: 22
project: e2e-nuxt
- node_version: 22
project: e2e-nx-init
- node_version: 22
project: e2e-nx
- node_version: 22
project: e2e-plugin
- node_version: 22
project: e2e-playwright
- node_version: 22
project: e2e-react
- node_version: 22
project: e2e-web
- node_version: 22
project: e2e-remix
- node_version: 22
project: e2e-rollup
- node_version: 22
project: e2e-storybook
- node_version: 22
project: e2e-vite
- node_version: 22
project: e2e-vue
- node_version: 22
project: e2e-webpack
# - node_version: 23
# project: e2e-angular
# - node_version: 23
# project: e2e-cypress
# - node_version: 23
# project: e2e-esbuild
# - node_version: 23
# project: e2e-jest
# - node_version: 23
# project: e2e-js
# - node_version: 23
# project: e2e-eslint
# - node_version: 23
# project: e2e-next
# - node_version: 23
# project: e2e-node
# - node_version: 23
# project: e2e-nuxt
# - node_version: 23
# project: e2e-nx-init
# - node_version: 23
# project: e2e-nx
# - node_version: 23
# project: e2e-plugin
# - node_version: 23
# project: e2e-playwright
# - node_version: 23
# project: e2e-react
# - node_version: 23
# project: e2e-web
# - node_version: 23
# project: e2e-remix
# - node_version: 23
# project: e2e-rollup
# - node_version: 23
# project: e2e-storybook
# - node_version: 23
# project: e2e-vite
# - node_version: 23
# project: e2e-vue
# - node_version: 23
# project: e2e-webpack
fail-fast: false fail-fast: false
name: ${{ matrix.project }} (v${{ matrix.node_version }}) name: ${{ matrix.project }} (v${{ matrix.node_version }})
@ -215,21 +296,21 @@ jobs:
- name: Prepare dir for output - name: Prepare dir for output
run: mkdir -p outputs run: mkdir -p outputs
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
with: with:
version: 8.7.4 version: 9.8.0
run_install: false run_install: false
- name: Use Node.js ${{ matrix.node_version }} - name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node_version }} node-version: ${{ matrix.node_version }}
cache: 'pnpm' cache: 'pnpm'
- name: Cache node_modules - name: Cache node_modules
id: cache-modules id: cache-modules
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: '**/node_modules' path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }} key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
@ -239,7 +320,7 @@ jobs:
- name: Cache Cypress - name: Cache Cypress
id: cache-cypress id: cache-cypress
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: '${{ github.workspace }}/.cypress' path: '${{ github.workspace }}/.cypress'
key: ${{ runner.os }}-cypress key: ${{ runner.os }}-cypress
@ -289,10 +370,12 @@ jobs:
echo "$matrix" > $path echo "$matrix" > $path
- name: Upload matrix config - name: Upload matrix config
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: ${{ always() }} if: ${{ always() }}
with: with:
name: outputs name: outputs
overwrite: true
if-no-files-found: 'ignore'
path: ${{ steps.save-matrix.outputs.path }} path: ${{ steps.save-matrix.outputs.path }}
- name: Setup tmate session - name: Setup tmate session
@ -311,7 +394,7 @@ jobs:
codeowners: ${{ steps.process-json.outputs.CODEOWNERS }} codeowners: ${{ steps.process-json.outputs.CODEOWNERS }}
steps: steps:
- name: Load outputs - name: Load outputs
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: outputs name: outputs
path: outputs path: outputs