Skip to content

Commit

Permalink
Combine reporting in extra action.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 11, 2021
1 parent 9f3e745 commit 0b468fa
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 54 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[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
}
}
27 changes: 0 additions & 27 deletions .github/workflows/coverage.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/reporting.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Mutation Coverage
run: mvn -V -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": {
"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
}
}

0 comments on commit 0b468fa

Please sign in to comment.