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