Skip to content

Jacoco report workflow added. #4

Jacoco report workflow added.

Jacoco report workflow added. #4

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
permissions:

Check failure on line 11 in .github/workflows/jacoco_report.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/jacoco_report.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
contents: read
push: write
steps:
- name: Checkout
- uses: actions/checkout@v3.0.2
- name: Set up JDK
uses: actions/setup-java@v3.5.9
with:
java-version: '17'
distribution: 'zulu'
- 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/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: Code Coverage
update-comment: true