-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.21 KB
/
sonarqube.yaml
File metadata and controls
43 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: SonarQube
on:
push:
branches: ["main"]
paths-ignore: ["**/*.md"]
pull_request:
types: [opened, synchronize, reopened]
paths-ignore: ["**/*.md"]
jobs:
build:
name: Build & Analyze
runs-on: "ubuntu-24.04"
# typical duration is ~2min, set a reasonable amount as limit (default is 6h)
timeout-minutes: 8
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-sonar-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-sonar-
- name: Maven Build
uses: ./.github/actions/maven-build
with:
command: "verify"
skip_spotless: "true"
skip_changed_files: "true"
- name: SonarQube Analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B --show-version --file pom.xml sonar:sonar -Dsonar.projectKey=llamara-ai_llamara-backend