Skip to content

Commit

Permalink
Enable autograding.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 11, 2021
1 parent 41b2344 commit 9adedd7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,30 @@ jobs:
env:
BROWSER: chrome-container
run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'
- name: Autograding
uses: uhafner/[email protected]
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_SHA: ${{github.event.pull_request.head.sha}}
CONFIG: >
{
"analysis": {
"maxScore": 100,
"errorImpact": -5,
"highImpact": -2,
"normalImpact": -1,
"lowImpact": -1
},
"tests": {
"maxScore": 100,
"failureImpact": -10,
},
"coverage": {
"maxScore": 100,
"missedPercentageImpact": -1
},
"pit": {
"maxScore": 100,
"undetectedPercentageImpact": -1
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>edu.hm.hafner</groupId>
<artifactId>codingstyle</artifactId>
<version>1.7.0-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>

<packaging>jar</packaging>

Expand Down

0 comments on commit 9adedd7

Please sign in to comment.