From: Jérôme Benoit Date: Sat, 21 Aug 2021 18:39:43 +0000 (+0200) Subject: Add coverage run to GitHub actions X-Git-Tag: v1.0.40~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=39e1335bed1e71975f49ec6b4deff09d1dd1e6c1;p=e-mobility-charging-stations-simulator.git Add coverage run to GitHub actions Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97fe7e9e..dce72d57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,8 @@ jobs: run: npm run lint - name: npm test run: npm test + - name: npm run coverage + run: npm run coverage - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: diff --git a/sonar-project.properties b/sonar-project.properties index e09a1f85..7a8bfd4d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -8,5 +8,7 @@ sonar.projectVersion=1.0.0 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. #sonar.sources=. +sonar.javascript.lcov.reportPaths=coverage/lcov.info + # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8