Added Sonar workflow

This commit is contained in:
Liviu Burcusel 2025-10-22 15:51:40 +02:00
parent 866155e25e
commit 61184f57a5
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
3 changed files with 33 additions and 0 deletions

21
.github/workflows/sonar.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Sonar
on:
push:
branches:
- production
pull_request:
branches:
- production
types: [opened, synchronize, reopened]
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}