Added Sonar workflow
This commit is contained in:
parent
866155e25e
commit
61184f57a5
3 changed files with 33 additions and 0 deletions
21
.github/workflows/sonar.yml
vendored
Normal file
21
.github/workflows/sonar.yml
vendored
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue