chore: add Sonar analysis
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 12m34s

This commit is contained in:
2025-11-16 01:31:19 +01:00
parent 0b60e67e19
commit 5168ff1bc7
2 changed files with 11 additions and 0 deletions

View File

@@ -39,6 +39,16 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: ${{ github.event_name == 'pull_request' }} skipPush: ${{ github.event_name == 'pull_request' }}
- name: Coverage
run: |
nix develop --no-pure-eval --command just coverage
- name: Sonar analysis
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: Build Docker image with Nix - name: Build Docker image with Nix
run: | run: |
echo "Building Docker image..." echo "Building Docker image..."

1
sonar-project.properties Normal file
View File

@@ -0,0 +1 @@
sonar.projectKey=phundrak-backend