From 1f0a0ee539fe0ea39f214ef61fa01ef14e333f4c Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:44:24 +0500 Subject: [PATCH] test: Add Node 20 to CI matrix (#152) * test: Add Node 20 to CI matrix * refactor: adjusted line spacing in workflow * refactor: updated workflow * refactor: adjusted line spacing in workflow --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 283a96c..b4144a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,20 @@ on: [push, pull_request] jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + node: [18, 20] + continue-on-error: ${{ matrix.node == 20 }} + steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Setup Nodejs Env - run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Nodejs - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VER }} + node-version: ${{ matrix.node }} - name: Install dependencies run: npm ci - name: Validate package-lock.json changes