From 7ba0f3809d111252bac19e4aac5a5ffd6e898652 Mon Sep 17 00:00:00 2001 From: antoineludeau <52679050+antoineludeau@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:40:34 +0200 Subject: [PATCH 1/2] Modified node version in CI to 16, 18 and 20 --- .github/workflows/node.js.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7c18c7ce..c4d370c5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,21 +8,28 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [16, 18, 20] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'yarn' - - run: yarn - - run: yarn lint - - run: yarn test + + - name: Install dependencies + run: yarn + + - name: Run linting + run: yarn lint + + - name: Run test + run: yarn test From ac819833fc9dd4ec3d36e801a351826b076e027e Mon Sep 17 00:00:00 2001 From: antoineludeau <52679050+antoineludeau@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:41:26 +0200 Subject: [PATCH 2/2] Modified package.json node engine value to version 16 to 20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7270502b..0907761d 100644 --- a/package.json +++ b/package.json @@ -119,6 +119,6 @@ } }, "engines": { - "node": ">= 14" + "node": ">=16 <=20" } }