diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 0427b2fc7..cd778c5ac 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -21,8 +21,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 # for SonarCloud + - uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0 if: github.base_ref + - name: Setup Flutter uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # v2.18.0 with: @@ -43,7 +47,7 @@ jobs: with: name: failures path: "**/failures/" - - uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0 - with: - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} + + - uses: SonarSource/sonarqube-scan-action@0303d6b62e310685c0e34d0b9cde218036885c4d # v5.0.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..c8c5c1ab8 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.dart.lcov.reportPaths=packages/*/coverage/lcov.info +sonar.projectKey=daohoangson_flutter_widget_from_html +sonar.organization=daohoangson +sonar.sources=packages +sonar.test.inclusions=**/test/*