Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) config sonarcloud coverage #77

Merged
merged 11 commits into from
Jun 12, 2024
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Run test coverage
run: |
./tasks _test_coverage

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
10 changes: 7 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ sonar.projectKey=prm-orphaned-record-continuity_prm-repo-gp2gp-messenger
sonar.organization=prm-orphaned-record-continuity

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=prm-repo-gp2gp-messenger
#sonar.projectVersion=1.0
sonar.projectName="GP2GP Messenger"
sonar.projectVersion=1.0

sonar.javascript.lcov.reportPaths=coverage/lcov.info

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
sonar.sources=src/
sonar.exclusions=src/**/__test__/**/*
sonar.tests=src/,test/
sonar.test.inclusions=src/**/__tests__/*,src/**/__mocks__/*,src/**/__builders__/*,src/**/*.test.js

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
Loading