From d73c088b14128226ae8aaaea5185e216fdc9f1b8 Mon Sep 17 00:00:00 2001 From: antoineludeau <52679050+antoineludeau@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:55:37 +0200 Subject: [PATCH] Modified node version in CI to 18 and 20 --- .github/workflows/node.js.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7c18c7ce..b4956983 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: [18.x, 20.x] # 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 + + - name: Install dependencies + run: yarn + + - name: Run linting + run: yarn lint + + - name: Run test - run: yarn test