-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
71 lines (69 loc) · 2.01 KB
/
pitest.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Pitest
on:
push:
branches:
- master
pull_request:
jobs:
pitest:
strategy:
matrix:
profile:
- pitest-annotation
- pitest-ant
- pitest-api
- pitest-blocks
- pitest-coding-1
- pitest-coding-2
- pitest-coding-require-this-check
- pitest-common
- pitest-common-2
- pitest-design
- pitest-filters
- pitest-header
- pitest-imports
- pitest-indentation
- pitest-javadoc
- pitest-main
- pitest-metrics
- pitest-misc
- pitest-modifier
- pitest-naming
- pitest-packagenamesloader
- pitest-regexp
- pitest-sizes
- pitest-tree-walker
- pitest-utils
- pitest-whitespace
- pitest-xpath
- pitest-java-ast-visitor
# GUI package needs better test coverage before adding to execution.
# - pitest-gui
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Setup local maven cache
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }}
- name: Checkout
uses: actions/checkout@v2
- name: Generate ${{ matrix.profile }} report
run: |
mvn -e --no-transfer-progress -P"${{ matrix.profile }}" clean test-compile \
org.pitest:pitest-maven:mutationCoverage
- name: ${{ matrix.profile }}
run: |
./.ci/pitest.sh ${{ matrix.profile }}
- name: Stage results
if: failure() || github.ref == 'refs/heads/master'
run: |
mkdir staging && cp -r target/pit-reports/ staging
- name: Archive code coverage results
if: failure() || github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.profile }}-coverage-report
path: staging
retention-days: 7