Add SonarQube analysis workflow
All checks were successful
SonarQube Analysis / sonarqube (push) Successful in 10s
All checks were successful
SonarQube Analysis / sonarqube (push) Successful in 10s
This commit is contained in:
20
.gitea/workflows/sonarqube.yaml
Normal file
20
.gitea/workflows/sonarqube.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: SonarQube Analysis
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master, develop]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sonarqube:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: SonarQube Scan
|
||||||
|
uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
4
sonar-project.properties
Normal file
4
sonar-project.properties
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
sonar.projectKey=test-is
|
||||||
|
sonar.projectName=test-is
|
||||||
|
sonar.sources=.
|
||||||
|
sonar.exclusions=**/node_modules/**,**/vendor/**,**/.git/**,**/dist/**,**/build/**,**/*.test.*,**/*.spec.*
|
||||||
Reference in New Issue
Block a user