Skip to content

Commit d20ad14

Browse files
authored
Merge pull request #394 from preactjs/chore/run-build-prebench
chore: Run build prior to running benchmarks
2 parents e7ec96b + bc80e6d commit d20ad14

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@ jobs:
2121
cache: npm
2222
- run: npm ci
2323
- name: test
24-
# Not using `npm test` since it rebuilds source which npm ci has already done
25-
run: |
26-
npm run build
27-
npm run test
24+
run: npm run test

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"./package.json": "./package.json"
3838
},
3939
"scripts": {
40+
"prebench": "npm run build",
4041
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
4142
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.modern.js",
4243
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s transpile:stream-node && npm run -s copy-typescript-definition",

0 commit comments

Comments
 (0)