Skip to content

Commit a4bf7ef

Browse files
and-morafedcurciorubertiniDanieleRanaldomichael11barone
authored
fix: promote to main (#210)
Co-authored-by: fedcurciorubertini <federico.curciorubertini@nttdata.com> Co-authored-by: Andrea Morabito <78792023+and-mora@users.noreply.github.com> Co-authored-by: DanieleRanaldo <124155243+DanieleRanaldo@users.noreply.github.com> Co-authored-by: michael11barone <michael.barone@nttdata.com>
2 parents 1a3a28f + 74fdcce commit a4bf7ef

30 files changed

+937
-328
lines changed

.devops/code-review-pipelines.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.devops/deploy-pipelines.yml

Lines changed: 0 additions & 192 deletions
This file was deleted.

.github/workflows/code-review.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
2+
name: SonarCloud Analysis
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- uat
9+
- develop
10+
pull_request:
11+
types:
12+
- opened
13+
- edited
14+
- synchronize
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
22+
pull-requests: write
23+
24+
jobs:
25+
sonarcloud:
26+
name: SonarCloud Analysis
27+
runs-on: ubuntu-22.04
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
with:
33+
fetch-depth: 0 # Fetch all history for all branches and tags
34+
35+
- name: Set up JDK 21
36+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
37+
with:
38+
distribution: 'adopt'
39+
java-version: '21'
40+
41+
- name: Cache Maven packages
42+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
43+
with:
44+
path: ~/.m2/repository
45+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
46+
restore-keys: |
47+
${{ runner.os }}-maven-
48+
49+
- name: Build and test with Maven
50+
run: mvn clean org.jacoco:jacoco-maven-plugin:0.8.12:prepare-agent verify org.jacoco:jacoco-maven-plugin:0.8.12:report org.jacoco:jacoco-maven-plugin:0.8.12:report-aggregate -B
51+
52+
- name: Generate JaCoCo XML Report
53+
run: mvn org.jacoco:jacoco-maven-plugin:0.8.12:report -Djacoco.reportFormat=xml -B
54+
55+
- name: SonarCloud Scan
56+
env:
57+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
run: |
60+
mvn sonar:sonar \
61+
-Dsonar.projectKey=${{ vars.SONARCLOUD_PROJECT_KEY }} \
62+
-Dsonar.organization=${{ vars.SONARCLOUD_ORG }} \
63+
-Dsonar.host.url=https://sonarcloud.io \
64+
-Dsonar.token=${{ secrets.SONAR_TOKEN }} \
65+
-Dsonar.java.binaries=target/classes \
66+
-Dsonar.junit.reportPaths=target/surefire-reports \
67+
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
68+
-Dsonar.exclusions=**/configuration/**,**/enums/**,**/model/**,**/stub/**,**/dto/**,**/*Constant*,**/*Config.java,**/*Scheduler.java,**/*Application.java,**/src/test/**,**/Dummy*.java
69+
70+
- name: Fetch all branches
71+
run: git fetch --all

0 commit comments

Comments
 (0)