build(ci): add step to fix coverage report paths
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 Dec 2023 11:22:38 +0000 (12:22 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 Dec 2023 11:22:38 +0000 (12:22 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/ci.yml

index f76dda13dda1fc64b61fd99351186643da1d59d3..3b4c832979a963628a6094102c67b33cb20bfce9 100644 (file)
@@ -57,6 +57,11 @@ 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: Check for SonarCloud Token Availability
         id: sonar-token
         shell: bash