fix(ci): untanble build from benchmarking scripts
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 20 Oct 2024 13:44:15 +0000 (15:44 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 20 Oct 2024 13:44:15 +0000 (15:44 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/internal-benchmark.yml
benchmarks/README.md
package.json

index 3af6cdb4a2620a26845165758888c0ba01c37be1..734ff9ca3b085948016a7d9458bdc36a66203f4d 100644 (file)
@@ -30,6 +30,8 @@ jobs:
           cache: 'pnpm'
       - name: Install dependencies
         run: pnpm install --ignore-scripts --frozen-lockfile
+      - name: Production Build
+        run: pnpm build:prod
       - uses: bencherdev/bencher@main
       - name: Run production benchmark
         run: |
@@ -49,4 +51,4 @@ jobs:
           --file benchmark-report.json \
           --err \
           --github-actions ${{ secrets.GITHUB_TOKEN }} \
-          "pnpm benchmark:tatami-ng:prod"
+          "pnpm benchmark:tatami-ng"
index 319cafcf4f3759f105e0359b0b31d70ea8788848..0d4765fc08c5f186eee42bb6eb3e918487e7a9c4 100644 (file)
@@ -24,6 +24,7 @@ See the dedicated repository [README.md](https://github.com/poolifier/benchmark#
 
 To run the internal benchmark, you just need to navigate to the root of poolifier cloned repository and run:
 
+- `pnpm build:prod`
 - `pnpm benchmark:tatami-ng`
 
 ### [Results](https://bencher.dev/perf/poolifier)
index 2bffafd256db373367f3d1b2325c79c06e62a881..e6dd27b614d986cf07bb1304824a858eaa3e1c55 100644 (file)
@@ -21,9 +21,8 @@
     "build:prod": "rollup --config",
     "build:typedoc": "rollup --config --environment DOCUMENTATION,BUILD:development",
     "build:analyze": "rollup --config --environment ANALYZE,BUILD:development",
-    "benchmark:tatami-ng": "pnpm build && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
-    "benchmark:tatami-ng:prod": "pnpm build:prod && node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
-    "benchmark:tatami-ng:debug": "pnpm build && node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
+    "benchmark:tatami-ng": "node --enable-source-maps benchmarks/internal/bench.mjs -t tatami-ng",
+    "benchmark:tatami-ng:debug": "node --enable-source-maps --inspect benchmarks/internal/bench.mjs -t tatami-ng",
     "test": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha 'tests/**/*.test.mjs'",
     "test:debug": "pnpm build && cross-env NODE_ENV=test mocha --no-parallel --inspect 'tests/**/*.test.mjs'",
     "coverage": "c8 report --reporter=lcov",