File tree 6 files changed +374
-1
lines changed
6 files changed +374
-1
lines changed Original file line number Diff line number Diff line change 29
29
- run : pnpm lint
30
30
- run : pnpm build
31
31
- run : pnpm vitest ${{ matrix.testenv.args }}
32
+ benchmarks :
33
+ runs-on : ubuntu-latest
34
+ timeout-minutes : 10
35
+ permissions :
36
+ contents : write
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - uses : wyvox/action-setup-pnpm@v3
40
+ - run : pnpm install
41
+ - run : pnpm benchmarks
42
+ - uses : benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
43
+ with :
44
+ name : Benchmarks
45
+ tool : ' customSmallerIsBetter'
46
+ output-file-path : benchmarks.json
47
+ auto-push : ${{ github.event_name == 'push' }}
48
+ github-token : ${{ secrets.GITHUB_TOKEN }}
49
+ comment-on-alert : true
50
+ summary-always : true
Original file line number Diff line number Diff line change 47
47
dist /
48
48
* .tsbuildinfo
49
49
.DS_Store
50
+
51
+ # Benchmarks result:
52
+ benchmarks.json
Original file line number Diff line number Diff line change 25
25
"lint:types" : " tsc --noEmit" ,
26
26
"lint:prettier" : " prettier --check ." ,
27
27
"lint:fix" : " prettier --write ." ,
28
- "test" : " vitest"
28
+ "test" : " vitest" ,
29
+ "benchmarks" : " esbuild tests/benchmarks/benchmarks.ts --bundle --format=esm --platform=node --outdir=build --sourcemap=external && node --expose-gc ./build/benchmarks.js"
29
30
},
30
31
"devDependencies" : {
32
+ "esbuild" : " ^0.25.0" ,
33
+ "js-reactivity-benchmark" : " divdavem/js-reactivity-benchmark#77a55ade586a1aac5a67265a4892ff9ae7902500" ,
31
34
"@types/node" : " ^20.11.25" ,
32
35
"@vitest/browser" : " ^1.5.3" ,
33
36
"concurrently" : " ^9.0.1" ,
You can’t perform that action at this time.
0 commit comments