Skip to content

Commit 589c62e

Browse files
authored
Merge pull request #137 from Azure-Samples/pr-131
Modernize dependencies and CI
2 parents 3bd65bf + 208ea46 commit 589c62e

43 files changed

Lines changed: 47381 additions & 28580 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Build & Test
52

63
on:
@@ -13,13 +10,11 @@ on:
1310

1411
jobs:
1512
build:
16-
1713
runs-on: ubuntu-latest
1814

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

2419
steps:
2520
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -28,39 +23,28 @@ jobs:
2823
with:
2924
node-version: ${{ matrix.node-version }}
3025

31-
- run: |
32-
cd Common/msal-node-wrapper
33-
npm ci
34-
npm audit --omit=dev
35-
npm run build --if-present
36-
npm run test
37-
38-
- run: |
39-
cd 1-Authentication/1-sign-in/App
40-
npm install
41-
npm audit --omit=dev
42-
npm run test
43-
44-
- run: |
45-
cd 1-Authentication/2-sign-in-b2c/App
46-
npm install
47-
npm audit --omit=dev
48-
npm run test
49-
50-
- run: |
51-
cd 2-Authorization/1-call-graph/App
52-
npm install
53-
npm audit --omit=dev
54-
npm run test
55-
56-
- run: |
57-
cd 4-AccessControl/1-app-roles/App
58-
npm install
59-
npm audit --omit=dev
60-
npm run test
61-
62-
- run: |
63-
cd 4-AccessControl/2-security-groups/App
64-
npm install
65-
npm audit --omit=dev
66-
npm run test
26+
- name: Install, audit, build, and test
27+
shell: bash
28+
run: |
29+
set -euo pipefail
30+
31+
projects=(
32+
"Common/msal-node-wrapper"
33+
"1-Authentication/1-sign-in/App"
34+
"1-Authentication/2-sign-in-b2c/App"
35+
"2-Authorization/1-call-graph/App"
36+
"3-Deployment/App"
37+
"4-AccessControl/1-app-roles/App"
38+
"4-AccessControl/2-security-groups/App"
39+
"5-AdvancedScenarios/1-call-graph-bff/App"
40+
"5-AdvancedScenarios/1-call-graph-bff/App/client"
41+
)
42+
43+
for project in "${projects[@]}"; do
44+
echo "::group::$project"
45+
npm ci --prefix "$project"
46+
npm audit --prefix "$project" --omit=dev
47+
npm run build --prefix "$project" --if-present
48+
npm test --prefix "$project" --if-present
49+
echo "::endgroup::"
50+
done

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ on:
2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
27-
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 30
2828
permissions:
2929
actions: read
3030
contents: read

‎.github/workflows/docs.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323

2424
- name: Use Node.js
2525
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
26+
with:
27+
node-version: 24.x
2628
env:
2729
RUNNING_NODE_CI: 1
2830
- run: |

‎.github/workflows/issues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
14+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
operations-per-run: 60

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ typings/
9090
# vuepress build output
9191
.vuepress/dist
9292

93+
# Vite build output
94+
/5-AdvancedScenarios/1-call-graph-bff/App/client/dist/
95+
9396
# Serverless directories
9497
.serverless/
9598

0 commit comments

Comments
 (0)