-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.1 KB
/
codspeed.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: Codspeed Benchmarks
run-name: |-
github.event_name == 'pull_request' &&
"Test on ${{ github.event.pull_request.title }} by ${{ github.actor }}" ||
"Test on main"
permissions:
contents: read
packages: read
pull-requests: write
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/codspeed.yml"
- ".gitignore"
- "src/**"
- "test/**"
- "package.json"
- "vitest.config.ts"
- "yarn.lock"
jobs:
init__node:
if: |
!contains(github.event.pull_request.labels.*.name, 'renovate') && github.event.pull_request.title != 'Version Packages'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/init-node
benchmarks:
runs-on: ubuntu-latest
needs:
- init__node
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/init-node
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
run: yarn bench
token: ${{ secrets.CODSPEED_TOKEN }}