-
Notifications
You must be signed in to change notification settings - Fork 59
84 lines (82 loc) · 2.44 KB
/
autograding.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
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 'Build and autograde'
on:
push:
branches:
- master
- main
pull_request:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Compile, Test and Analysis
run: mvn -V --color always -ntp clean verify -Dmaven.test.failure.ignore=true | tee maven.log
- name: Mutation Coverage
run: mvn -V --color always -ntp org.pitest:pitest-maven:mutationCoverage
- name: Autograding
uses: uhafner/[email protected]
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_SHA: ${{github.event.pull_request.head.sha}}
CONFIG: >
{
"analysis": {
"tools": [
{
"id": "error-prone",
"pattern": "**/*.log"
},
{
"id": "java",
"pattern": "**/*.log"
},
{
"id": "javadoc-warnings",
"pattern": "**/*.log"
},
{
"id": "checkstyle",
"pattern": "**/checkstyle-result.xml"
},
{
"id": "pmd",
"pattern": "**/pmd.xml"
},
{
"id": "spotbugs",
"pattern": "**/spotbugsXml.xml"
}
],
"maxScore": 100,
"errorImpact": -5,
"highImpact": -2,
"normalImpact": -1,
"lowImpact": -1
},
"tests": {
"maxScore": 100,
"passedImpact": 0,
"failureImpact": -5,
"skippedImpact": -1
},
"coverage": {
"maxScore": 100,
"coveredPercentageImpact": 0,
"missedPercentageImpact": -1
},
"pit": {
"maxScore": 100,
"detectedImpact": 0,
"undetectedImpact": -1,
"detectedPercentageImpact": 0,
"undetectedPercentageImpact": 0
}
}