From d8b1bde1c3f483f96b6a30f560212bb92d754fe0 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 15 Sep 2025 16:57:43 -0700 Subject: [PATCH] Initial, probably not working experiment with enabling coverage and quality checks --- .github/workflows/ci.yml | 8 ++++++++ sonar-project.properties | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e28e537d7..f0670c2e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,10 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} flags: backend-python-${{ matrix.python-version }} files: coverage.xml + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Stop containers if: always() run: | @@ -233,6 +237,10 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} flags: frontend-node-${{ matrix.node-version }} directory: src-ui/coverage/ + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} tests-frontend-e2e: name: "Frontend E2E Tests (Node ${{ matrix.node-version }} - ${{ matrix.shard-index }}/${{ matrix.shard-count }})" runs-on: ubuntu-24.04 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..34c4a1208 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +sonar.projectKey=paperless-ngx_paperless-ngx +sonar.organization=paperless-ngx + + +# This is the name and version displayed in the SonarCloud UI. +sonar.projectName=paperless-ngx +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +sonar.sources=. +sonar.python.coverage.reportPaths=coverage.xml +sonar.python.version=3.10, 3.11, 3.12, 3.13 +sonar.javascript.lcov.reportPaths=./coverage/lcov.info