Files
Wdipl-react/.gitea/workflows/sonar.yml
Tejas Patil fdb4f38164
All checks were successful
Build-Check / Build and Test PR (pull_request) Successful in 2m28s
Enforce Image Standards / optimize (pull_request) Successful in 31s
Sonar Check / SonarQube Scan (pull_request) Successful in 1m48s
restore workflow files (no changes)
2026-04-17 16:23:54 +05:30

39 lines
918 B
YAML

name: Sonar Check
on:
pull_request:
branches:
- main
- beta
- testing
- client
- staging
- production
jobs:
sonarqube:
name: SonarQube Scan
runs-on: ubuntu-latest
container:
image: sonarsource/sonar-scanner-cli:12.0.0.3214_8.0.1
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Sonar Scan
run: |
REPO_NAME=${{ gitea.event.repository.name }}
sonar-scanner \
-Dsonar.projectKey=$REPO_NAME \
-Dsonar.projectName=$REPO_NAME \
-Dsonar.sources=. \
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
-Dsonar.token=${{ secrets.SONARQUBE_TOKEN }} \
-Dsonar.exclusions=node_modules/**,dist/**,coverage/** \
-Dsonar.qualitygate.wait=true