Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 26 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# 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: Build & Test

on:
Expand All @@ -13,13 +10,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -28,39 +23,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: |
cd Common/msal-node-wrapper
npm ci
npm audit --omit=dev
npm run build --if-present
npm run test

- run: |
cd 1-Authentication/1-sign-in/App
npm install
npm audit --omit=dev
npm run test

- run: |
cd 1-Authentication/2-sign-in-b2c/App
npm install
npm audit --omit=dev
npm run test

- run: |
cd 2-Authorization/1-call-graph/App
npm install
npm audit --omit=dev
npm run test

- run: |
cd 4-AccessControl/1-app-roles/App
npm install
npm audit --omit=dev
npm run test

- run: |
cd 4-AccessControl/2-security-groups/App
npm install
npm audit --omit=dev
npm run test
- name: Install, audit, build, and test
shell: bash
run: |
set -euo pipefail

projects=(
"Common/msal-node-wrapper"
"1-Authentication/1-sign-in/App"
"1-Authentication/2-sign-in-b2c/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
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:

- name: Use Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24.x
env:
RUNNING_NODE_CI: 1
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: 60
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ typings/
# vuepress build output
.vuepress/dist

# Vite build output
/5-AdvancedScenarios/1-call-graph-bff/App/client/dist/

# Serverless directories
.serverless/

Expand Down
Loading