зеркало из https://github.com/nextcloud/passman.git
setup sonarqube github action
Signed-off-by: binsky <timo@binsky.org>
This commit is contained in:
Родитель
b58e3ca45e
Коммит
57506d601d
|
@ -0,0 +1,26 @@
|
|||
name: SonarQube
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
sonarqube:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: SonarQube Scan
|
||||
uses: sonarsource/sonarqube-scan-action@master
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||
# following lines. This would typically be used to fail a deployment.
|
||||
- name: SonarQube Quality Gate check
|
||||
uses: sonarsource/sonarqube-quality-gate-action@master
|
||||
timeout-minutes: 5
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
@ -0,0 +1,4 @@
|
|||
sonar.projectKey=Passman
|
||||
sonar.qualitygate.wait=true
|
||||
sonar.sources=.
|
||||
sonar.language=php
|
Загрузка…
Ссылка в новой задаче