upgrade vitest to v4 #18
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
| name: Benchmark @lix-js/sdk | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "packages/lix-sdk/**" | |
| pull_request: | |
| paths: | |
| - "packages/lix-sdk/**" | |
| workflow_dispatch: | |
| # allows manual triggering of the workflow | |
| jobs: | |
| benchmarks: | |
| name: Run benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| - uses: "actions/setup-node@v4" | |
| - uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build dependencies | |
| run: pnpm --filter @lix-js/sdk... build | |
| - name: Run benchmarks | |
| uses: CodSpeedHQ/action@v3 | |
| env: | |
| CODSPEED_BENCH: true | |
| with: | |
| run: pnpm --filter @lix-js/sdk exec vitest bench --run | |
| token: ${{ secrets.CODSPEED_TOKEN }} |