-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
52 lines (46 loc) · 1.27 KB
/
client-nav-benchmarks.yml
File metadata and controls
52 lines (46 loc) · 1.27 KB
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
# Setup taken from https://codspeed.io/docs/benchmarks/nodejs/vitest
name: Benchmarks
on:
push:
branches:
- 'main'
paths:
- 'packages/**'
- 'benchmarks/**'
pull_request:
paths:
- 'packages/**'
- 'benchmarks/**'
workflow_dispatch:
permissions:
contents: read # required for actions/checkout
id-token: write # required for OIDC authentication with CodSpeed
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
SERVER_PRESET: 'node-server'
NX_NO_CLOUD: true
jobs:
benchmarks:
name: Run ${{ matrix.benchmark }}:${{ matrix.framework }} CodSpeed benchmark
strategy:
fail-fast: false
matrix:
framework:
- react
- solid
- vue
benchmark:
- client-nav
- ssr
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup Tools
uses: TanStack/config/.github/setup@main
- name: Run ${{ matrix.benchmark }}:${{ matrix.framework }} CodSpeed benchmark
continue-on-error: true
uses: CodSpeedHQ/action@v4
with:
mode: simulation
run: WITH_INSTRUMENTATION=1 pnpm nx run @benchmarks/${{ matrix.benchmark }}:test:perf:${{ matrix.framework }}