Skip to content

Jacoco report workflow added. #2

Jacoco report workflow added.

Jacoco report workflow added. #2

Workflow file for this run

# A Github action that publishes the JaCoCo report as a comment
name: Measure coverage
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
- name: Run Coverage
run: |
chmod +x gradlew
./gradlew testCoverage
- name: Jacoco Report
id: jacoco
uses: madrapps/jacoco-report@v1.6.1
with:
paths: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: Code Coverage
update-comment: true