name: CodSpeed on: pull_request: branches: - main push: branches: - main workflow_dispatch: permissions: contents: read id-token: write # A push gets its own group, so every commit on main keeps its run. concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: true jobs: benchmarks: name: Run benchmarks (${{ matrix.lane }}) runs-on: ubuntu-24.04 # CodSpeed merges these results only when the jobs share one workflow. strategy: fail-fast: false matrix: include: - lane: signals command: pnpm --filter @solidjs/signals run bench - lane: web-client-1 command: BENCH_LANE=1 pnpm --filter @solidjs/web run bench - lane: web-client-2 command: BENCH_LANE=2 pnpm --filter @solidjs/web run bench - lane: web-server command: pnpm --filter @solidjs/web run bench:server steps: - uses: actions/checkout@v5 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" cache: "pnpm" - name: Installing deps run: pnpm install - name: Building (packages only) run: pnpm turbo run build --filter=!./examples/* --filter=!test-integration - name: Run benchmarks under CodSpeed uses: CodSpeedHQ/action@v4 with: mode: simulation run: ${{ matrix.command }}