Skip to content
Open
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
75 changes: 75 additions & 0 deletions .github/workflows/dependabot-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Verify Dependabot Version Update (JavaScript)

on:
pull_request:
branches:
- main
types:
- opened
- synchronize

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest # Use Ubuntu for JavaScript projects
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Verify Node.js version
run: node -v

# Restore, Build, and Test generic JavaScript projects
- name: Install and Test Generic JavaScript Projects
run: |
for dir in msal-client-credentials-flow protect-api protect-function-app protected-api-access-protected-api react-spa vanillajs-spa; do
echo "Processing directory: $dir"
cd $dir
npm install
npm run test || npm test
cd ..
done

build-angular:
runs-on: ubuntu-latest # Use Ubuntu for Angular projects
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Verify Node.js version
run: node -v

# Restore, Build, and Test Angular projects
- name: Install and Test Angular Projects
run: |
for dir in angular-spa; do
echo "Processing Angular directory: $dir"
cd $dir
npm install
npx ng test --no-watch --browsers=ChromeHeadless # Run Angular CLI tests in headless mode
cd ..
done

# dependabot-auto-merge:
# runs-on: ubuntu-latest
# needs: [build, build-angular]
# steps:
# - name: Auto-merge Dependabot PR
# if: github.event.pull_request.user.login == 'dependabot[bot]' # Only run on Dependabot PRs
# run: |
# gh pr merge ${{ github.event.pull_request.number }} --merge --admin --repo ${{ github.repository }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"homepage": "https://github.com/Azure-Samples/ms-identity-javascript-tutorial#readme",
"dependencies": {
"@azure/msal-browser": "^2.37.0",
"express": "^4.18.2",
"express": "^4.21.2",
"morgan": "^1.10.0"
},
"devDependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading