fix(evlog): replace require() with dynamic import() for workers compat #62
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: codspeed | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/evlog/src/**' | |
| - '!packages/evlog/src/vite/**' | |
| - 'packages/evlog/bench/**' | |
| - 'packages/evlog/vitest.config.ts' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/evlog/src/**' | |
| - '!packages/evlog/src/vite/**' | |
| - 'packages/evlog/bench/**' | |
| - 'packages/evlog/vitest.config.ts' | |
| jobs: | |
| benchmarks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.10" | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build evlog package | |
| run: bunx turbo run build --filter=evlog | |
| - uses: CodSpeedHQ/action@v4 | |
| with: | |
| run: cd packages/evlog && bunx vitest bench --run bench/core/ |