From c21d0946a99b8e48cf748669fa9ba70237dc136d Mon Sep 17 00:00:00 2001 From: rtritto <r.tritto5@studenti.uniba.it> Date: Mon, 16 Oct 2023 19:45:06 +0200 Subject: [PATCH] chore: add Node v18 and v20 to test workflows --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6fec75..d1bb1a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,11 +13,13 @@ jobs: strategy: matrix: bson: [4.x, 5.x, 6.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v3.1.0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: ${{ matrix.node-version }} - run: yarn install --frozen-lockfile # will run `yarn install` command - run: yarn add bson@${{ matrix.bson }} - run: yarn sanity # will check if building works & if code is formatted well