build(ci): fix coverage report
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 Dec 2023 22:10:57 +0000 (23:10 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 Dec 2023 22:10:57 +0000 (23:10 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/ci.yml
.mocharc.json
package.json

index 3b4c832979a963628a6094102c67b33cb20bfce9..58a8fe5e78ffaaf7c96f4a796e0c615719080299 100644 (file)
@@ -57,10 +57,10 @@ jobs:
         if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
         run: pnpm coverage
 
-      - name: Fix Coverage Report Paths
-        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
-        working-directory: ./coverage
-        run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info
+      - name: Fix Coverage Report Paths
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
+        working-directory: ./coverage
+        run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info
 
       - name: Check for SonarCloud Token Availability
         id: sonar-token
index 676d4f0217ac1c9ac6b70bf263cfbc739ddf5cd9..f6014cbe2f808b04367ace86b2948bd267b3935f 100644 (file)
@@ -6,7 +6,7 @@
   "timeout": 20000,
   "full-trace": true,
   "exit": true,
-  "enable-source-maps": true,
+  "enable-source-maps": false,
   "reporter": "mochawesome",
   "reporter-options": "reportDir=outputs/mochawesome-report,json=false",
   "require": ["mochawesome/register"]
index 7b90303201b5fc9ece57f399649c1448d4a1ae49..d6f2cdfbcae2d354d2da4c6916a31ead76991c07 100644 (file)
@@ -22,7 +22,7 @@
     "benchmark": "pnpm build && node --max-old-space-size=8192 --enable-source-maps benchmarks/internal/bench.mjs",
     "benchmark:prod": "pnpm build:prod && node --max-old-space-size=8192 --enable-source-maps benchmarks/internal/bench.mjs",
     "benchmark:debug": "pnpm build && node --max-old-space-size=8192 --enable-source-maps --inspect benchmarks/internal/bench.mjs",
-    "test": "pnpm build --environment SOURCEMAP:false && cross-env NODE_ENV=test c8 mocha 'tests/**/*.test.mjs'",
+    "test": "pnpm build --environment SOURCEMAP:true && 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",
     "coverage:html": "c8 report --reporter=html",