Skip to content

Commit

Permalink
fix: sonarcube lcov path
Browse files Browse the repository at this point in the history
  • Loading branch information
apurv-wednesday committed May 15, 2024
1 parent b6eb93b commit 2668d5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:

- name: Build Project
run: yarn build


- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

- name: Test and generate coverage report
uses: artiomtr/[email protected]
with:
Expand All @@ -45,11 +50,6 @@ 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 }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

# Commenting out SonarQube Quality Gate action for now
# - uses: sonarsource/sonarqube-quality-gate-action@master
Expand Down
22 changes: 3 additions & 19 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
# Project identification
sonar.organization=wednesday-solutions
sonar.projectKey=wednesday-solutions_next-bulletproof-ts_AY6yu6eKB2n8RRmGoUz4

# Specify the language
sonar.language=ts

# Source directory
sonar.sources=.

sonar.sources=src
# 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

0 comments on commit 2668d5a

Please sign in to comment.