-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for pitest mutation testing
Signed-off-by: Sirisha Pratha <sirisha.pratha@bnymellon.com>
- Loading branch information
1 parent
140ca1a
commit 5e196f3
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: Mutation tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 13 * * 5' | ||
|
||
jobs: | ||
applications: | ||
name: Mutation Test ${{ matrix.java-version }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
java-version: [8] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
JAVA_VERSION: ${{ matrix.java-version }} | ||
|
||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
- name: Enable Maven Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Maven Install | ||
run: mvn clean install -DskipTests=true | ||
env: | ||
MAVEN_OPTS: "-Xmx1g" | ||
- name: Mutation Test | ||
run: mvn eu.stamp-project:pitmp-maven-plugin:run -DwithHistory -DtimeoutConstant=8000 | ||
env: | ||
MAVEN_OPTS: "-Xmx1g" | ||
- name: Archive pitest reports | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: pit-reports | ||
path: unit-tests/target/pit-reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5e196f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this great collections for the Java platform!!!
It's so amazing and great!!!
Thanks for that great effor :D