-
Notifications
You must be signed in to change notification settings - Fork 115
49 lines (39 loc) · 1.18 KB
/
e2e-benchmark.yml
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
name: Run Benchmarks
on:
# Triggers the workflow every Monday at 5am
schedule:
- cron: "0 5 * * 1"
workflow_dispatch:
jobs:
run_benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache Node Modules
uses: actions/cache@v4
with:
path: |
node_modules
key: cache-${{ github.run_id }}
- name: Install Dependencies
run: npm ci
- name: Install browsers
run: npx playwright install
- name: Build the project
run: npm run build
- name: Run benchmarks
run: npm run benchmark
- name: Update the benchmark report
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: [skip-ci] update benchmark results"
branch: master
file_pattern: '**/report.png'
commit_user_name: "Mark Bench[bot] 💪🏼"
commit_user_email: markbench[bot]@users.noreply.github.com