This repository has been archived by the owner on May 17, 2024. It is now read-only.
Archive repo #690
Workflow file for this run
This file contains 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
# 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: "Node Build" | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
cd 1-Authentication/1-sign-in/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 1-Authentication/2-sign-in-b2c/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 2-Authorization-I/1-call-graph/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 3-Authorization-II/1-call-api/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 3-Authorization-II/2-call-api-b2c/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 5-AccessControl/1-call-api-roles/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 5-AccessControl/2-call-api-groups/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 6-AdvancedScenarios/1-call-api-obo/SPA | |
npm ci | |
npm audit --production | |
npm run test | |
- run: | | |
cd 6-AdvancedScenarios/2-call-api-mt/SPA | |
npm ci | |
npm audit --production | |
npm run test |