-
-
Notifications
You must be signed in to change notification settings - Fork 18
71 lines (58 loc) · 1.66 KB
/
ci_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: '🎖️ CI — Benchmark'
on:
pull_request:
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
name: Compare
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: ➕ Actions - Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: ➕ Actions - Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun-version }}
- name: ➕ Actions — Setup Hyperfine
run: cargo install --locked hyperfine
- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-linux-${{ hashFiles('package-lock.json') }}
restore-keys: npm-linux-
- name: ➕ Cache dependencies (Benchmark)
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-benchmark-${{ hashFiles('benchmark/package-lock.json') }}
restore-keys: npm-benchmark-
- name: 📦 Installing Dependencies
run: npm ci
- name: 🚀 Building Poku
run: |
npm run build
cd benchmark && npm ci
- name: 🎖️ Rock it
run: npm run benchmark
- name: 💬 Comment
uses: wellwelwel/[email protected]
with:
update-if-includes: 'Benchmarks'
comment-from-file: './benchmark/output.md'
- name: 🐷 Ensure Poku
run: |
cd benchmark
npm run compare