diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c4ff3ec..08836c8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [14, 16, 18, 20] + node: [14, 16, 18, 20, 22] name: Node ${{ matrix.node }} steps: - name: 'Checkout latest code' @@ -20,8 +20,8 @@ jobs: with: node-version: ${{ matrix.node }} cache: 'npm' - - name: Install NPM - run: npm install -g npm@9 + - name: Install NPM (if node 14) + run: if [ "${{ matrix.node }}" == "14" ]; then npm install -g npm@9; fi - name: Install dependencies run: npm ci - name: Run tests