diff --git a/.github/codecov.yml b/.github/codecov.yml deleted file mode 100644 index 8abeedb..0000000 --- a/.github/codecov.yml +++ /dev/null @@ -1,29 +0,0 @@ -comment: - layout: "header, diff, flags, components" - -component_management: - individual_components: - - component_id: plugin_hardcover - name: hardcover - paths: - - plugins/hardcover/** - - component_id: plugin_hardcover_sync - name: hardcover-sync - paths: - - plugins/hardcover-sync/** - - component_id: plugin_anilist - name: anilist - paths: - - plugins/anilist/** - - component_id: plugin_manga_chapters - name: manga-chapters - paths: - - plugins/manga-chapters/** - - component_id: lib_common - name: common - paths: - - libs/common/** - - component_id: lib_graphql - name: graphql - paths: - - libs/graphql/** diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 58ea2c3..b4af3f4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,16 +51,10 @@ jobs: - name: Run Unit Tests run: just test --cov-report xml --junitxml=junit.xml -o junit_family=legacy - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build: runs-on: ${{ vars.ACTION_RUNNER || 'ubuntu-latest' }} diff --git a/README.md b/README.md index 7cc0b37..8626a23 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # calibre-plugins ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/RobBrazier/calibre-plugins/build.yaml) -[![Codecov](https://img.shields.io/codecov/c/gh/RobBrazier/calibre-plugins)](https://app.codecov.io/gh/RobBrazier/calibre-plugins) -[![Codacy grade](https://img.shields.io/codacy/grade/11d6e5b88f054995b0321f5437042cf4)](https://app.codacy.com/gh/RobBrazier/calibre-plugins/dashboard) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=RobBrazier_calibre-plugins&metric=coverage)](https://sonarcloud.io/summary/new_code?id=RobBrazier_calibre-plugins) +[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=RobBrazier_calibre-plugins)](https://sonarcloud.io/summary/new_code?id=RobBrazier_calibre-plugins) ## Current Plugins diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..bbdc53e --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,3 @@ +sonar.projectKey=RobBrazier_calibre-plugins +sonar.organization=robbrazier +sonar.exclusions=coverage.xml,junit.xml