From dc4925bac194d2c577f5b96ea44ce15f9b30379d Mon Sep 17 00:00:00 2001 From: EduardoFernandes1410 Date: Sun, 4 Dec 2022 10:40:56 +0300 Subject: [PATCH] #27 Code coverage on sonarcloud --- .github/workflows/build.yml | 12 ++++++------ sonar-project.properties | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a363c5a..d3297a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,12 +41,6 @@ jobs: run: | npm i - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: ESLinter run: | npm run lint @@ -57,6 +51,12 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Download and Build Grammar run: | diff --git a/sonar-project.properties b/sonar-project.properties index a4bb3bd..938b23d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,6 +3,8 @@ sonar.organization=eolangvscode sonar.exclusions=client/out/**,server/out/**,server/src/parser/**,docs/** +sonar.javascript.lcov.reportPaths=coverage/lcov.info + # This is the name and version displayed in the SonarCloud UI. #sonar.projectName=eo-vscode #sonar.projectVersion=1.0