From 0b468fa7408b56d974acc6197e03a38469ab81e5 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Thu, 11 Feb 2021 17:48:52 +0100 Subject: [PATCH] Combine reporting in extra action. --- .github/workflows/ci.yml | 27 ---------------- .github/workflows/coverage.yml | 27 ---------------- .github/workflows/reporting.yml | 55 +++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/coverage.yml create mode 100644 .github/workflows/reporting.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51e2f1ea..5b04dd7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,30 +33,3 @@ 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/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 208d2303..00000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: 'Generate coverage report' - -on: - push: - branches: - - master - pull_request: - -jobs: - coverage: - - runs-on: [ubuntu-latest] - name: Coverage on Ubuntu - - steps: - - uses: actions/checkout@v2.3.4 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Generate coverage with JaCoCo - run: mvn -V -ntp clean verify --file pom.xml '-Dgpg.skip' - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.2.1 - with: - token: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/reporting.yml b/.github/workflows/reporting.yml new file mode 100644 index 00000000..ead6e2a2 --- /dev/null +++ b/.github/workflows/reporting.yml @@ -0,0 +1,55 @@ +name: 'Generate reports' + +on: + push: + branches: + - master + pull_request: + +jobs: + coverage: + + runs-on: [ubuntu-latest] + name: Reporting on Ubuntu + + steps: + - uses: actions/checkout@v2.3.4 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Generate coverage with JaCoCo + run: mvn -V -ntp clean verify --file pom.xml '-Dgpg.skip' + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1.2.1 + with: + token: ${{secrets.CODECOV_TOKEN}} + - name: Mutation Coverage + run: mvn -V -ntp org.pitest:pitest-maven:mutationCoverage + - 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 + } + }