Skip to content

Commit fbf305f

Browse files
committed
Mutation tests step
1 parent 3fb1111 commit fbf305f

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,54 @@ jobs:
4646
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
4747
-Dsonar.exclusions=**/*Application.java
4848
49+
integration-test:
50+
name: Integration Tests
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout Code
54+
uses: actions/checkout@v3
55+
56+
- name: Set Up JDK 17
57+
uses: actions/setup-java@v3
58+
with:
59+
java-version: '17'
60+
distribution: 'temurin'
61+
62+
- name: Cache Maven Packages
63+
uses: actions/cache@v3
64+
with:
65+
path: ~/.m2
66+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
67+
restore-keys: |
68+
${{ runner.os }}-m2-
69+
4970
- name: Build and run integration tests
5071
run: |
5172
export MAVEN_OPTS="-Djansi.force=true"
52-
mvn -B clean verify -DskipUTs=true
73+
mvn -B clean verify -DskipUTs=true
74+
75+
mutation-test:
76+
name: Mutation Tests
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Checkout Code
80+
uses: actions/checkout@v3
81+
82+
- name: Set Up JDK 17
83+
uses: actions/setup-java@v3
84+
with:
85+
java-version: '17'
86+
distribution: 'temurin'
87+
88+
- name: Cache Maven Packages
89+
uses: actions/cache@v3
90+
with:
91+
path: ~/.m2
92+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
93+
restore-keys: |
94+
${{ runner.os }}-m2-
95+
96+
- name: Build and run mutation tests
97+
run: |
98+
export MAVEN_OPTS="-Djansi.force=true"
99+
mvn -B clean test-compile org.pitest:pitest-maven:mutationCoverage -DwithHistory

0 commit comments

Comments
 (0)