From: Jérôme Benoit Date: Mon, 25 Dec 2023 22:10:57 +0000 (+0100) Subject: build(ci): fix coverage report X-Git-Tag: v3.1.12-0~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=96678ea574f46d1ea42e7631256d31e8a5259634;p=poolifier.git build(ci): fix coverage report Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b4c8329..58a8fe5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.mocharc.json b/.mocharc.json index 676d4f02..f6014cbe 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -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"] diff --git a/package.json b/package.json index 7b903032..d6f2cdfb 100644 --- a/package.json +++ b/package.json @@ -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",