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 28b8a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build Project
run: yarn build

- name: Test and generate coverage report
uses: artiomtr/[email protected]
with:
Expand All @@ -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 }}
Expand Down
18 changes: 2 additions & 16 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 28b8a24

Please sign in to comment.