Skip to content

Merge pull request #4 from Asedem/optimize-pipelines #8

Merge pull request #4 from Asedem/optimize-pipelines

Merge pull request #4 from Asedem/optimize-pipelines #8

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build and Test with Maven
run: mvn -B test
- name: Add JaCoCo PR Comment
uses: madrapps/jacoco-report@v1.6.1
if: github.event_name == 'pull_request'
with:
paths: ${{ github.workspace }}/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80
title: 'Code Coverage Report'
update-comment: true