Skip to content

Commit

Permalink
misc: codspeed がうまく連携できてなかたt (#125)
Browse files Browse the repository at this point in the history
* misc: codspeed 導入できてなかった

* fix: benchmark action 実行タイミングの抑制

* fix: 漏れ

* Create red-jars-taste.md

* fix: failed to import type
  • Loading branch information
mew-ton authored Jan 30, 2024
1 parent 55ecd14 commit 27733a4
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 431 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-jars-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"json-origami": patch
---

misc: codspeed がうまく連携できてなかたt
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
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"importHelpers": true,
"inlineSources": false,
"isolatedModules": true,
"resolvePackageJsonExports": false,

"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
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'
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

0 comments on commit 27733a4

Please sign in to comment.