Initial, probably not working experiment with enabling coverage and quality checks

This commit is contained in:
Trenton H
2025-09-15 16:57:43 -07:00
parent f2ef9af291
commit d8b1bde1c3
2 changed files with 21 additions and 0 deletions

View File

@@ -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

13
sonar-project.properties Normal file
View File

@@ -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