Skip to content

Commit c5c25ea

Browse files
authored
Merge pull request #193 from PublicisSapient/develop
Develop
2 parents 7d1244f + 6569d19 commit c5c25ea

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

.github/workflows/Processors_CI_CD_Prod_Workflow.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,26 @@ jobs:
135135
-DdepVersion=$COMMON_VERSION \
136136
-DforceVersion=true
137137
138+
# ✅ Code Formatting Check (Spotless)
139+
- name: Code Formatting Check
140+
run: mvn spotless:check
141+
138142
- name: Build & Test Processor
139143
run: |
140144
mvn clean install -Ddockerfile.skip=true
141145
142-
# - name: SonarQube Analysis - Processors
143-
# run: |
144-
# mvn sonar:sonar -Dsonar.projectKey=ENGINEERING.KPIDASHBOARD.PROCESSORS \
145-
# -Dsonar.projectName=ENGINEERING.KPIDASHBOARD.PROCESSORS \
146-
# -Dsonar.branch.name=${{ env.GITHUB_HEAD_NAME }} \
147-
# -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
148-
# -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -f pom.xml
149-
150-
# - name: Check SonarQube Quality Gate
151-
# run: |
152-
# chmod +x SonarQG.sh
153-
# ./SonarQG.sh ./target/sonar/report-task.txt
146+
- name: SonarQube Analysis - Processors
147+
run: |
148+
mvn sonar:sonar -Dsonar.projectKey=ENGINEERING.KPIDASHBOARD.PROCESSORS \
149+
-Dsonar.projectName=ENGINEERING.KPIDASHBOARD.PROCESSORS \
150+
-Dsonar.branch.name=${{ env.GITHUB_HEAD_NAME }} \
151+
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
152+
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -f pom.xml
153+
154+
- name: Check SonarQube Quality Gate
155+
run: |
156+
chmod +x SonarQG.sh
157+
./SonarQG.sh ./target/sonar/report-task.txt
154158
155159
- name: Build & Push Jira Docker Image
156160
if: ${{ github.event.inputs.processor == 'all' || github.event.inputs.processor == 'jira' }}

.github/workflows/Processors_CI_CD_Workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ jobs:
159159
-DdepVersion=$COMMON_VERSION \
160160
-DforceVersion=true
161161
162+
# ✅ Code Formatting Check (Spotless)
163+
- name: Code Formatting Check
164+
run: mvn spotless:check
165+
162166
- name: Build & Skip Test Processor
163167
if: ${{ github.event.inputs.test == 'false' }}
164168
run: |

.github/workflows/Processors_CI_Workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
-Dincludes=com.publicissapient.kpidashboard:common \
107107
-DdepVersion=$COMMON_VERSION \
108108
-DforceVersion=true
109+
110+
# ✅ Code Formatting Check (Spotless)
111+
- name: Code Formatting Check
112+
run: mvn spotless:check
109113

110114
- name: Build & Test Processor
111115
run: |

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,12 @@
347347
<include>**/*.yml</include>
348348
<include>**/*.yaml</include>
349349
</includes>
350+
<excludes>
351+
<exclude>**/target/**</exclude>
352+
<exclude>**/node_modules/**</exclude>
353+
<exclude>**/.git/**</exclude>
354+
<exclude>.github/workflows/**</exclude>
355+
</excludes>
350356
</format>
351357
<format>
352358
<includes>
@@ -355,6 +361,9 @@
355361
<excludes>
356362
<exclude>pom.xml</exclude>
357363
<exclude>**/pom.xml</exclude>
364+
<exclude>**/target/**</exclude>
365+
<exclude>**/node_modules/**</exclude>
366+
<exclude>**/.git/**</exclude>
358367
</excludes>
359368
</format>
360369
</formats>

0 commit comments

Comments
 (0)