-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.09 KB
/
sonarqube.yaml
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
44
45
name: SonarQube
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build & Analyze
strategy:
matrix:
java: [ '21' ]
maven: [ '3.9.9' ]
runs-on: 'ubuntu-24.04'
steps:
- name: Checkout repository
uses: actions/checkout@v4
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
restore-keys: ${{ runner.os }}-sonar
- name: Maven Build
uses: ./.github/actions/maven-build
with:
java: ${{ matrix.java }}
maven: ${{ matrix.maven }}
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