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

Configure SonarCloud for Dart #109

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
npm run test:coverage
working-directory: transformers/js-dvhcvn

- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1.6.5
- name: transformers/dart-dvhcvn
run: |
set -e
dart pub get
dart pub global activate coverage
dart pub global run coverage:test_with_coverage
working-directory: transformers/dart-dvhcvn

- uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
sonar.projectKey=daohoangson_dvhcvn
sonar.organization=daohoangson

sonar.exclusions=transformers/js-dvhcvn/src/data.ts, \
sonar.exclusions=transformers/dart-dvhcvn/lib/src/data.dart, \
transformers/js-dvhcvn/src/data.ts, \
**/*.json, \
**/*.spec.ts
sonar.test.inclusions=**/*.spec.ts

sonar.dart.lcov.reportPaths=transformers/dart-dvhcvn/coverage/lcov.info

sonar.javascript.lcov.reportPaths=demo/parser/coverage/lcov.info, \
firebase/functions/coverage/lcov.info, \
history/coverage/lcov.info, \
Expand Down
Loading