Skip to content

Commit e25e17e

Browse files
committed
Add Checkstyle run 1
1 parent 4895e57 commit e25e17e

File tree

3 files changed

+62
-15
lines changed

3 files changed

+62
-15
lines changed

.github/workflows/ci-testing.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ jobs:
3838
- name: Verify tests with Maven
3939
if: success() || failure()
4040
run: mvn -B verify --file pom.xml
41-
# - name: Agrergation des résultats des tests
42-
# if: success() || failure()
43-
# run: mvn -B surefire-report:report-only --file pom.xml
4441
- name: Agregagtion des résultats des tests
4542
if: success() || failure()
4643
run: |
@@ -50,24 +47,24 @@ jobs:
5047
grep "<testcase" "$file" >> target/single-reports/all-tests.xml
5148
done
5249
echo "</testsuite>" >> target/single-reports/all-tests.xml
53-
- name: Création de l'artefact des résultats des tests XML multi fichiers
54-
uses: actions/upload-artifact@v4
55-
if: success() || failure()
56-
with:
57-
name: ciMavenReportXML-${{ github.run_id }}
58-
path: target/surefire-reports
50+
# - name: Création de l'artefact des résultats des tests XML multi fichiers
51+
# uses: actions/upload-artifact@v4
52+
# if: success() || failure()
53+
# with:
54+
# name: ciMavenReportXML-${{ github.run_id }}
55+
# path: target/surefire-reports
5956
- name: Création de l'artefact des résultats des tests XML consolidés
6057
uses: actions/upload-artifact@v4
6158
if: success() || failure()
6259
with:
6360
name: ciMavenReportXMLSingle-${{ github.run_id }}
6461
path: target/single-reports
65-
- name: Création de l'artefact des résultats consolidés des tests en HTML
66-
uses: actions/upload-artifact@v4
67-
if: success() || failure()
68-
with:
69-
name: ciMavenReportHTML-${{ github.run_id }}
70-
path: target/consolidated-reports
62+
# - name: Création de l'artefact des résultats consolidés des tests en HTML
63+
# uses: actions/upload-artifact@v4
64+
# if: success() || failure()
65+
# with:
66+
# name: ciMavenReportHTML-${{ github.run_id }}
67+
# path: target/consolidated-reports
7168
- name: Test Report
7269
uses: dorny/test-reporter@v1
7370
if: success() || failure() # run this step even if previous step failed
@@ -79,3 +76,4 @@ jobs:
7976
fail-on-error: 'false' # Fail the check run if an error occurs
8077
#java-version: ${{ matrix.java-version }} # Java version
8178

79+

.github/workflows/qa.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# @author : Julien Pechberty
2+
#
3+
# https://help.github.com/en/actions
4+
name: JAVA TD 5 - Tests runners
5+
on:
6+
push:
7+
branches:
8+
- test-xi
9+
jobs:
10+
run-test:
11+
name : Run Tests suite
12+
runs-on: ubuntu-latest
13+
strategy:
14+
#fail-fast: true
15+
matrix:
16+
java-version: [22]
17+
18+
steps:
19+
- name: Starting RUNNER
20+
run: echo "Launching tests for JAVA ${{ matrix.java-version }}"
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Set up JDK ${{ matrix.java-version }}
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'temurin'
27+
java-version: ${{ matrix.java-version }}
28+
cache: 'maven'
29+
- name: Cache Maven packages
30+
uses: actions/cache@v3
31+
with:
32+
path: ~/.m2/repository
33+
key: maven-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: ${{ runner.os }}-m2
35+
- name: Run QA Checkstyle
36+
run: mvn -B checkstyle:check --file pom.xml

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@
127127
<linkXRef>false</linkXRef>
128128
</configuration>
129129
</plugin>
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-checkstyle-plugin</artifactId>
133+
<version>3.5.0</version>
134+
<executions>
135+
<execution>
136+
<phase>verify</phase>
137+
<goals>
138+
<goal>check</goal>
139+
</goals>
140+
</execution>
141+
</executions>
142+
</plugin>
130143
</plugins>
131144
</build>
132145
</project>

0 commit comments

Comments
 (0)