From 212ad1ace2021cf87ea9b63144861d14f0b966a3 Mon Sep 17 00:00:00 2001 From: Speiger Date: Sat, 28 May 2022 19:56:28 +0200 Subject: [PATCH] Add coverage test --- .github/workflows/coverage.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..09fcdb61 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -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 }} \ No newline at end of file