-
-
Notifications
You must be signed in to change notification settings - Fork 169
47 lines (44 loc) · 1.32 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
# name: codspeed-benchmarks
# on:
# push:
# branches:
# - "main"
# pull_request:
# branches:
# - main
# # `workflow_dispatch` allows CodSpeed to trigger backtest
# # performance analysis in order to generate initial data.
# workflow_dispatch:
# jobs:
# call-rust-build:
# uses: ./.github/workflows/rust-build.yaml
# benchmarks:
# needs: [call-rust-build]
# runs-on: ${{ matrix.settings.os }}
# strategy:
# fail-fast: false
# matrix:
# settings:
# - os: ubuntu-latest
# abi: linux-x64-gnu
# steps:
# - uses: "actions/checkout@v3"
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Install Dependencies
# run: npm install -g [email protected] && pnpm i --frozen-lockfile
# - name: Build CLI and Core
# run: pnpm --filter @farmfe/cli run build
# - uses: actions/download-artifact@v3
# id: download
# with:
# name: ${{ github.sha }}-${{ matrix.settings.abi }}
# path: ./packages/core/binding
# - name: Build Core CJS
# run: cd packages/core && pnpm run build:cjs
# - name: Run benchmarks
# uses: CodSpeedHQ/action@v3
# with:
# run: npm exec vitest bench
# token: ${{ secrets.CODSPEED_TOKEN }}