From 9adedd7fce316f5247ee46338bdc2d7310e2568b Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Thu, 11 Feb 2021 15:32:30 +0100 Subject: [PATCH] Enable autograding. --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b04dd7d..50e313aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/autograding-github-action@v1.6.0 + 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 + } + } diff --git a/pom.xml b/pom.xml index 738092fc..767ac25f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 edu.hm.hafner codingstyle - 1.7.0-SNAPSHOT + 2.0.0-SNAPSHOT jar