From 28b8a24603c344fc8888514c5fb799bc4aeb0003 Mon Sep 17 00:00:00 2001 From: apurv-wednesday Date: Wed, 15 May 2024 17:47:03 +0530 Subject: [PATCH] fix: sonarcube lcov path --- .github/workflows/ci.yml | 4 ++-- sonar-project.properties | 18 ++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de57a32..891f5ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Build Project run: yarn build - + - name: Test and generate coverage report uses: artiomtr/jest-coverage-report-action@v2.3.0 with: @@ -45,7 +45,7 @@ jobs: skip-step: install test-script: yarn test custom-title: Jest Coverage Report - + - uses: sonarsource/sonarqube-scan-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties index 9253996..725433f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,29 +1,15 @@ # Project identification sonar.organization=wednesday-solutions sonar.projectKey=wednesday-solutions_next-bulletproof-ts_AY6yu6eKB2n8RRmGoUz4 - # Specify the language sonar.language=ts - # Source directory sonar.sources=. - # Test directory sonar.tests=src - -# Exclude node_modules -# Let's not exclude anything for now, after refractoring changes we can decide what to exclude from the analysis sonar.exclusions=node_modules/**/*,lighthouserc.js - sonar.test.inclusions=**/*.test.tsx,**/*.test.js,**/*.test.ts -sonar.javascript.lcov.reportPaths=./coverage/lcov.info -sonar.testExecutionReportPaths=./reports/test-report.xml - +sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.testExecutionReportPaths=reports/test-report.xml # Encoding of the source code sonar.sourceEncoding=UTF-8 - -# Coverage report path -sonar.javascript.lcov.reportPaths=coverage/lcov.info - -# Test execution report path -sonar.testExecutionReportPaths=./reports/test-report.xml \ No newline at end of file