From d94f25562bc351b0d816fff6bafa8d61ad831cb8 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 7 Mar 2024 11:38:33 -0300 Subject: [PATCH] Update CI to test lts nodes from 14 through 20 and non-lts 21 --- sdks/rollbar.js/.github/workflows/ci.yml | 31 ++++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/sdks/rollbar.js/.github/workflows/ci.yml b/sdks/rollbar.js/.github/workflows/ci.yml index e58eedb37..601f5414a 100644 --- a/sdks/rollbar.js/.github/workflows/ci.yml +++ b/sdks/rollbar.js/.github/workflows/ci.yml @@ -2,27 +2,42 @@ name: Rollbar.js CI on: push: - branches: [ master ] - tags: [ v* ] + branches: [master] + tags: [v*] pull_request: - branches: [ master ] + branches: [master] jobs: build: runs-on: ubuntu-20.04 + strategy: matrix: - node-version: [10, 12, 14, 16] + include: + - node: 14 + npm: ^8 + - node: 16 + npm: ^8 + - node: 18 + npm: ^9 + - node: 20 + npm: ^10 + - node: latest + npm: latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 with: submodules: recursive - - name: Install node.js - uses: actions/setup-node@v2-beta + - name: Set up node ${{ matrix.node }} + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: ${{ matrix.node }} + + - name: Update npm + run: npm install -g npm@${{ matrix.npm }} - name: npm install run: npm install