Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 7fe2cc6

Browse files
committed
adding ci workflows
1 parent 149f9fb commit 7fe2cc6

File tree

96 files changed

+250525
-140
lines changed

Some content is hidden

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

96 files changed

+250525
-140
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
- [ ] 2-1) Acquire a Token and call Microsoft Graph
1515
- [ ] 3-1) Protect and call a web API on Azure AD
1616
- [ ] 3-2) Protect and call a web API on Azure AD B2C
17-
- [ ] 4) Deploy to Azure Storage and App Service
17+
- [ ] 4-1) Deploy to Azure Storage and App Service
18+
- [ ] 4-2) Deploy to Azure Static App Service
1819
- [ ] 5-1) Call a web API using App Roles
1920
- [ ] 5-2) Call a web API using Security Groups
2021
- [ ] 6-1) Call Microsoft Graph using on-behalf-of flow
2122
- [ ] 6-2) Call a web API using Proof of Possession tokens
23+
- [ ] 6-3) Call a web API using Conditional Access Auth Context
2224
```
2325

2426
## This issue is for a

.github/workflows/codeql.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Code Scan"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
CodeQL-Build:
10+
strategy:
11+
fail-fast: false
12+
13+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
# Initializes the CodeQL tools for scanning.
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v1
23+
with:
24+
languages: javascript
25+
26+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
27+
# If this step fails, then you should remove it and run the build manually (see below).
28+
#- name: Autobuild
29+
# uses: github/codeql-action/autobuild@v1
30+
31+
# ℹ️ Command-line programs to run using the OS shell.
32+
# 📚 https://git.io/JvXDl
33+
34+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
35+
# and modify them (or add more) to build your code if your project
36+
# uses a compiled language
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v1

.github/workflows/node.js.yml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
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+
4+
name: "Build"
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [12.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- run: |
29+
cd 1-Authentication/1-sign-in/SPA
30+
npm ci
31+
npm audit --production
32+
npm run test --no-watch
33+
34+
- run: |
35+
cd 1-Authentication/2-sign-in-b2c/SPA
36+
npm ci
37+
npm audit --production
38+
npm run test --no-watch
39+
40+
- run: |
41+
cd 2-Authorization-I/1-call-graph/SPA
42+
npm ci
43+
npm audit --production
44+
npm run test --no-watch
45+
46+
- run: |
47+
cd 3-Authorization-II/1-call-api/API
48+
npm ci
49+
npm audit --production
50+
npm run test
51+
52+
- run: |
53+
cd 3-Authorization-II/1-call-api/SPA
54+
npm ci
55+
npm audit --production
56+
npm run test --no-watch
57+
58+
- run: |
59+
cd 3-Authorization-II/2-call-api-b2c/API
60+
npm ci
61+
npm audit --production
62+
npm run test
63+
64+
- run: |
65+
cd 3-Authorization-II/2-call-api-b2c/SPA
66+
npm ci
67+
npm audit --production
68+
npm run test --no-watch
69+
70+
- run: |
71+
cd 4-Deployment/1-deploy-storage/SPA
72+
npm ci
73+
npm audit --production
74+
npm run test --no-watch
75+
76+
- run: |
77+
cd 4-Deployment/1-deploy-storage/API
78+
npm ci
79+
npm audit --production
80+
npm run test
81+
82+
- run: |
83+
cd 5-AccessControl/1-call-api-roles/SPA
84+
npm ci
85+
npm audit --production
86+
npm run test --no-watch
87+
88+
- run: |
89+
cd 5-AccessControl/1-call-api-roles/API
90+
npm ci
91+
npm audit --production
92+
npm run test
93+
94+
- run: |
95+
cd 5-AccessControl/2-call-api-groups/SPA
96+
npm ci
97+
npm audit --production
98+
npm run test --no-watch
99+
100+
- run: |
101+
cd 5-AccessControl/2-call-api-groups/API
102+
npm ci
103+
npm audit --production
104+
npm run test
105+
106+
- run: |
107+
cd 6-AdvancedScenarios/1-call-api-obo/DownstreamAPI
108+
npm ci
109+
npm audit --production
110+
npm run test
111+
112+
- run: |
113+
cd 6-AdvancedScenarios/1-call-api-obo/MiddletierAPI
114+
npm ci
115+
npm audit --production
116+
npm run test
117+
118+
- run: |
119+
cd 6-AdvancedScenarios/1-call-api-obo/SPA
120+
npm ci
121+
npm audit --production
122+
npm run test --no-watch
123+
124+
- run: |
125+
cd 6-AdvancedScenarios/2-call-api-pop/SPA
126+
npm ci
127+
npm audit --production
128+
npm run test --no-watch
129+
130+
- run: |
131+
cd 6-AdvancedScenarios/2-call-api-pop/API
132+
npm ci
133+
npm audit --production
134+
npm run test
135+
136+
- run: |
137+
cd 6-AdvancedScenarios/3-call-api-acrs/SPA
138+
npm ci
139+
npm audit --production
140+
npm run test --no-watch
141+
142+
- run: |
143+
cd 6-AdvancedScenarios/3-call-api-acrs/API
144+
npm ci
145+
npm audit --production
146+
npm run test

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,4 @@ VS & VS Code cache
104104
.vscode/
105105

106106
# React build folder
107-
build/
108-
109-
# NPM manifest
110-
package-lock.json
107+
build/

0 commit comments

Comments
 (0)