Skip to content

Commit

Permalink
Configure SonarCloud for Dart
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Oct 31, 2024
1 parent b78cc7a commit cc600b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
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

0 comments on commit cc600b9

Please sign in to comment.