Add coverage test

This commit is contained in:
Speiger 2022-05-28 19:56:28 +02:00
parent 707827929a
commit 212ad1ace2
1 changed files with 26 additions and 0 deletions

26
.github/workflows/coverage.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Measure coverage
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run Coverage
run: |
chmod +x gradlew
./gradlew build jacocoTestCoverage
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.2
with:
paths: /build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}