Skip to content

Use separator '#' instead of '$' #8

Use separator '#' instead of '$'

Use separator '#' instead of '$' #8

name: Build pull request
on:
pull_request:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4.1.0
with:
java-version: 17
distribution: 'adopt'
- name: Build
run: ./gradlew build
- name: Add coverage to PR
uses: madrapps/jacoco-report@v1.6.1
with:
paths: |
${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml,
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 60
title: Code Coverage
update-comment: true
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"