-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (40 loc) · 1.07 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Test
on: [push]
jobs:
matrix-test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '1.8', '9', '10', '11', '12' ]
name: test a JDK Version
steps:
- uses: actions/checkout@v1
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
architecture: x64
- run: mvn clean test --file pom.xml
build:
runs-on: ubuntu-latest
steps:
- name: Checkout from git
uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Clean - package
run: mvn clean package --file pom.xml
- name: Copy Jacoco Report
uses: actions/upload-artifact@master
with:
name: Jacoco Report
path: target/site/jacoco
- name: Mutation Testing
run: mvn pitest:mutationCoverage --file pom.xml
- name: Copy PiTest Report
uses: actions/upload-artifact@master
with:
name: Mutation Test Coverage Report
path: target/pit-reports