Skip to content

Commit

Permalink
Added charts for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie-Microsoft committed Aug 8, 2023
1 parent 7231dda commit 4427feb
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Do not run this workflow on pull request since this workflow has permission to modify contents.
# on:
# push:
# branches:
# - dev
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
paths:
- "regression-tests/msal-node/client-credential/*"
- "lib/msal-node/**/*"
- "lib/msal-common/**/*"
- "!**.md"
- ".github/workflows/client-credential.yml"
merge_group:
types: [checks_requested]

permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write

jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Run benchmark
run: cd regression-tests/msal-node/client-credential && npm install && node index.js | tee output.txt

# gh-pages branch is updated and pushed automatically with extracted benchmark data
# By default, this action assumes that gh-pages is the GitHub Pages branch and that
# /dev/bench is a path to put the benchmark dashboard page. They can be tweaked by
# the gh-pages-branch, gh-repository and benchmark-data-dir-path inputs.
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: msal-node client-credential Regression Test
tool: 'benchmarkjs'
output-file-path: regression-tests/msal-node/client-credential/output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
# Push and deploy GitHub pages branch automatically
auto-push: true

0 comments on commit 4427feb

Please sign in to comment.