18
18
if : (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/')))
19
19
strategy :
20
20
matrix :
21
- scope : [Petstore, Market, GestaoHospital]
21
+ scope : [Petstore, Market, GestaoHospital, Eval ]
22
22
fail-fast : false
23
23
24
24
steps :
@@ -68,18 +68,27 @@ jobs:
68
68
key : cache-${{ matrix.scope }}-v1-${{ github.run_id }}
69
69
restore-keys : cache-${{ matrix.scope }}-v1-
70
70
71
- - name : Test All
71
+ - name : Test All SUTs
72
+ if : ${{ matrix.scope != 'Eval' }}
72
73
env :
73
74
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
75
run : mvn test -pl st-tdg-test -Dtest=**/*${{ matrix.scope }}* -Dmaven.test.failure.ignore=true -U --no-transfer-progress
75
76
76
- - if : ${{ matrix.scope == 'Petstore' }}
77
+ - name : Evaluate Mutation Score
78
+ if : ${{ matrix.scope == 'Eval' }}
79
+ env :
80
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81
+ run : |
82
+ mvn -pl st-tdg-eval test -Dmaven.test.failure.ignore=true -U --no-transfer-progress
83
+ mvn -pl st-tdg-eval test-compile org.pitest:pitest-maven:mutationCoverage
84
+
85
+ - if : ${{ always() && matrix.scope == 'Petstore' }}
77
86
run : docker logs swagger-petstore > st-tdg-test/target/docker-petstore-server.log
78
- - if : ${{ matrix.scope == 'Market' }}
87
+ - if : ${{ always() && matrix.scope == 'Market' }}
79
88
run : |
80
89
docker logs market-rest > st-tdg-test/target/docker-market-server.log
81
90
docker logs db > st-tdg-test/target/docker-market-db.log
82
- - if : ${{ matrix.scope == 'GestaoHospital' }}
91
+ - if : ${{ always() && matrix.scope == 'GestaoHospital' }}
83
92
run : |
84
93
docker logs gestaohospital > st-tdg-test/target/docker-gestaoHospital-server.log
85
94
docker logs mongodb > st-tdg-test/target/docker-gestaoHospital-db.log
@@ -100,5 +109,6 @@ jobs:
100
109
path : |
101
110
**/target/site
102
111
**/target/surefire-reports
112
+ **/target/pit-reports
103
113
**/target/*.html
104
114
**/target/*.log
0 commit comments