Skip to content

Commit

Permalink
Jacoco report workflow added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niaktes committed Nov 21, 2023
1 parent dedf8ec commit b79ff4a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/jacoco_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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

0 comments on commit b79ff4a

Please sign in to comment.