Skip to content

Commit 12ec54d

Browse files
authored
Replace Codecov with SonarCloud (#1430)
1 parent 16f0f75 commit 12ec54d

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/flutter.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
with:
25+
fetch-depth: 0 # for SonarCloud
26+
2427
- uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
2528
if: github.base_ref
29+
2630
- name: Setup Flutter
2731
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0
2832
with:
@@ -43,7 +47,7 @@ jobs:
4347
with:
4448
name: failures
4549
path: "**/failures/"
46-
- uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
47-
with:
48-
fail_ci_if_error: true
49-
token: ${{ secrets.CODECOV_TOKEN }}
50+
51+
- uses: SonarSource/sonarqube-scan-action@0303d6b62e310685c0e34d0b9cde218036885c4d # v5.0.0
52+
env:
53+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sonar.dart.lcov.reportPaths=packages/*/coverage/lcov.info
2+
sonar.projectKey=daohoangson_flutter_widget_from_html
3+
sonar.organization=daohoangson
4+
sonar.sources=packages
5+
sonar.test.inclusions=**/test/*

0 commit comments

Comments
 (0)