test: add cross-framework SSR request-loop benchmarks #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Setup taken from https://codspeed.io/docs/benchmarks/nodejs/vitest | |
| name: Client Nav Benchmarks | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| 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' | |
| jobs: | |
| client-nav-benchmarks: | |
| name: Run Client Nav Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.1 | |
| - name: Setup Tools | |
| uses: tanstack/config/.github/setup@main | |
| - name: Run CodSpeed benchmark for React | |
| continue-on-error: true | |
| uses: CodSpeedHQ/action@v4 | |
| with: | |
| mode: simulation | |
| run: WITH_INSTRUMENTATION=1 pnpm nx run @benchmarks/client-nav:test:perf:react | |
| - name: Run CodSpeed benchmark for Solid | |
| continue-on-error: true | |
| uses: CodSpeedHQ/action@v4 | |
| with: | |
| mode: simulation | |
| run: WITH_INSTRUMENTATION=1 pnpm nx run @benchmarks/client-nav:test:perf:solid | |
| - name: Run CodSpeed benchmark for Vue | |
| continue-on-error: true | |
| uses: CodSpeedHQ/action@v4 | |
| with: | |
| mode: simulation | |
| run: WITH_INSTRUMENTATION=1 pnpm nx run @benchmarks/client-nav:test:perf:vue |