-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 891 Bytes
/
sonar.yml
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
name: SonarCloud Code Analysis
on:
push:
branches: [ "feature/*" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
sonarcloud:
name: SonarCloud Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build and run tests with coverage
run: mvn clean verify
- name: Set up SonarCloud
uses: sonarsource/sonarcloud-github-action@v3
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=angelodpadron_meli-apc-back
-Dsonar.organization=angelodpadron
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml