Skip to content

Commit

Permalink
ci: fix broken benchmark (#5424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Sep 3, 2024
1 parent b1d7440 commit 0a5780d
Show file tree
Hide file tree
Showing 4 changed files with 848 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,25 @@ jobs:
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
with:
package_json_file: ./tasks/benchmark/codspeed/package.json

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: ./tasks/benchmark/codspeed/package.json
cache: pnpm

- name: Start bench results interceptor server
working-directory: ./tasks/benchmark/codspeed
env:
COMPONENT: ${{ matrix.component }}
run: |
corepack enable
pnpm install
node capture.mjs &
pnpm run start &
- name: Build benchmark
env:
Expand Down
Loading

0 comments on commit 0a5780d

Please sign in to comment.