-
Notifications
You must be signed in to change notification settings - Fork 45
58 lines (48 loc) · 1.61 KB
/
benchmark.monitoring.yml
File metadata and controls
58 lines (48 loc) · 1.61 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
55
56
57
58
name: Benchmark-Monitoring
on:
workflow_dispatch:
concurrency:
group: 'workflow-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
permissions:
attestations: write
contents: write
id-token: write
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Checkout
uses: actions/checkout@v6
with:
token: ${{ steps.app-token.outputs.token }}
- name: Install and execute benchmark
uses: ./.github/actions/benchmark
- name: Attest benchmark result
uses: actions/attest-build-provenance@v4
with:
subject-path: packages/tools/benchmark-tests/benchmark-result.json
- name: Remove husky
run: rm -rf .husky
shell: bash
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
alert-threshold: 10%
auto-push: true
fail-threshold: 25%
gh-pages-branch: benchmarks
github-token: ${{ secrets.GITHUB_TOKEN }}
output-file-path: packages/tools/benchmark-tests/benchmark-result.json
tool: customSmallerIsBetter