27 lines
512 B
YAML
27 lines
512 B
YAML
name: SonarQube
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
sonar:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: sonarsource/sonarqube-scan-action@v5
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: http://10.0.0.15:9001
|
|
with:
|
|
args: >
|
|
-Dsonar.projectKey=Papo
|
|
-Dsonar.projectName=Papo
|
|
-Dsonar.sources=. |