-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathclient-credential-benchmark.yml
More file actions
54 lines (46 loc) · 2.04 KB
/
client-credential-benchmark.yml
File metadata and controls
54 lines (46 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: msal-node client-credential Regression Test
on:
# Allows manual triggering of workflow
workflow_dispatch:
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]
jobs:
benchmark:
name: Run msal-node client-credential Regression Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install --workspace=lib/msal-common --workspace=lib/msal-node
- name: Build dependencies
run: npm run build --workspace=lib/msal-common --workspace=lib/msal-node
- name: Run benchmark
run: npm install && node index.js | tee output.txt
working-directory: regression-tests/msal-node/client-credential
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- 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
external-data-json-path: ./cache/client-credential-benchmark-data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
# Show alert with commit comment on detecting possible performance regression
alert-threshold: "110%"
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: "@bgavrilMS @robbie-microsoft"