From 39e1335bed1e71975f49ec6b4deff09d1dd1e6c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 21 Aug 2021 20:39:43 +0200 Subject: [PATCH] Add coverage run to GitHub actions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 2 ++ sonar-project.properties | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.34.1