-
-
Notifications
You must be signed in to change notification settings - Fork 480
49 lines (43 loc) · 1.07 KB
/
benchmark-js.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: Benchmark JS
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark-js.yml'
push:
branches:
- main
- bench-*
paths:
- '**/*.rs'
- 'Cargo.lock'
- '.github/workflows/benchmark-js.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
benchmark-js:
name: Benchmark JS
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
progress: false
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
timeout-minutes: 30
with:
run: npm exec vitest bench
token: ${{ secrets.CODSPEED_TOKEN }}