Remove Azure AD B2C sample and consolidate basic Node guidance #87
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install, audit, build, and test | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| projects=( | |
| "Common/msal-node-wrapper" | |
| "1-Authentication/1-sign-in/App" | |
| "2-Authorization/1-call-graph/App" | |
| "3-Deployment/App" | |
| "4-AccessControl/1-app-roles/App" | |
| "4-AccessControl/2-security-groups/App" | |
| "5-AdvancedScenarios/1-call-graph-bff/App" | |
| "5-AdvancedScenarios/1-call-graph-bff/App/client" | |
| ) | |
| for project in "${projects[@]}"; do | |
| echo "::group::$project" | |
| npm ci --prefix "$project" | |
| npm audit --prefix "$project" --omit=dev | |
| npm run build --prefix "$project" --if-present | |
| npm test --prefix "$project" --if-present | |
| echo "::endgroup::" | |
| done |