Add coverage run to GitHub actions
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Aug 2021 18:39:43 +0000 (20:39 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Aug 2021 18:39:43 +0000 (20:39 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
sonar-project.properties

index 97fe7e9edccece441d0168df73fd8f85cdde5acd..dce72d579ace69d5370e2c13ee06bdd5d667b58d 100644 (file)
@@ -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:
index e09a1f859d9ea2ac3fe029aa88855e13b2d10edc..7a8bfd4dbf6f04cd2ec6a46a1ab7b7765eb2e757 100644 (file)
@@ -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