Skip to content

build(deps-dev): bump sinon from 15.2.0 to 19.0.2 in the sinon group across 1 directory #4816

build(deps-dev): bump sinon from 15.2.0 to 19.0.2 in the sinon group across 1 directory

build(deps-dev): bump sinon from 15.2.0 to 19.0.2 in the sinon group across 1 directory #4816

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Graph JS SDK CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build for node 16, 18 & 20
run: npm run build
- name: Run unit tests
run: npm test
- name: Verify ESM compatibility
working-directory: './test-esm'
run: |
npm ci
npm test
# The check-build-matrix returns success if all matrix jobs in build are successful; otherwise, it returns a failure.
# Use this as a PR status check for GitHub Policy Service instead of individual matrix entry checks.
check-build-matrix:
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: All build matrix options are successful
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: One or more build matrix options failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1