Skip to content

Commit

Permalink
Merge pull request #394 from preactjs/chore/run-build-prebench
Browse files Browse the repository at this point in the history
chore: Run build prior to running benchmarks
  • Loading branch information
rschristian authored Sep 14, 2024
2 parents e7ec96b + bc80e6d commit d20ad14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ jobs:
cache: npm
- run: npm ci
- name: test
# Not using `npm test` since it rebuilds source which npm ci has already done
run: |
npm run build
npm run test
run: npm run test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"./package.json": "./package.json"
},
"scripts": {
"prebench": "npm run build",
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
"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",
"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",
Expand Down

0 comments on commit d20ad14

Please sign in to comment.