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