Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: codspeed がうまく連携できてなかたt #125

Merged
merged 5 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ on:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- ".github/workflows/benchmarks.yml"
- "src"
- "package.json"
- "vitest.config.ts"
- "yarn.lock"

jobs:
init__node:
if: |
!contains(github.event.pull_request.labels.*.name, 'renovate')
!contains(github.event.pull_request.labels.*.name, 'renovate') &&
!startsWith(github.event.pull_request.title, 'Version Packages')
name: "Initialize: node"
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@biomejs/biome": "^1.5.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@codspeed/vitest-plugin": "^3.1.0",
"@types/node": "^20.11.0",
"@vitest/ui": "^1.2.2",
"defu": "^6.1.4",
Expand Down
2 changes: 2 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import codspeed from '@codspeed/vitest-plugin'

Check failure on line 1 in vitest.config.ts

View workflow job for this annotation

GitHub Actions / Test: typecheck

Could not find a declaration file for module '@codspeed/vitest-plugin'. '/home/runner/work/json-origami/json-origami/node_modules/@codspeed/vitest-plugin/dist/index.mjs' implicitly has an 'any' type.
import { defineConfig } from 'vitest/config'

// biome-ignore lint/style/noDefaultExport: <explanation>
export default defineConfig({
plugins: [codspeed()],
test: {
benchmark: {
include: ['test/**/*.bench.(js|ts)'],
Expand Down
Loading
Loading