From d8c92085f7327b196c0073bffd3c914068b8cd98 Mon Sep 17 00:00:00 2001 From: Nick De Villiers Date: Thu, 16 Nov 2023 13:29:53 +0200 Subject: [PATCH] ci: bump node from v16 to v20 LTS (#5210) Co-authored-by: Peter Makowski --- .github/workflows/test.yml | 14 ++++---------- .nvmrc | 1 + 2 files changed, 5 insertions(+), 10 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12b3cb5edb..a29dcd3a99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,6 @@ jobs: lint: name: Lint runs-on: ubuntu-22.04 - strategy: - matrix: - node-version: [16.x] steps: - uses: actions/checkout@v4 - name: Restore node_modules @@ -20,10 +17,10 @@ jobs: with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js from .nvmrc uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - name: Install if: steps.yarn-cache.outputs.cache-hit != 'true' run: CYPRESS_INSTALL_BINARY=0 yarn install @@ -32,9 +29,6 @@ jobs: test: name: Test runs-on: ubuntu-22.04 - strategy: - matrix: - node-version: [16.x] steps: - uses: actions/checkout@v4 - name: Restore node_modules @@ -43,10 +37,10 @@ jobs: with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js from .nvmrc uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - name: Install if: steps.yarn-cache.outputs.cache-hit != 'true' run: CYPRESS_INSTALL_BINARY=0 yarn install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..9a2a0e219c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20