-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.06 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Measure coverage
on:
pull_request:
env:
DIRECTORIES: "'Spring Boot 2 on Java' 'Spring Boot 2 on Kotlin'"
jobs:
check:
runs-on: ubuntu-latest
permissions:
pull-requests: write
strategy:
matrix:
java: [ 8 ]
steps:
- uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Generate coverage report
run: |
for dir in ${{ env.DIRECTORIES }}; do
cd "$dir"
./gradlew jacocoTestReport
cd "${{ github.workspace }}"
done
- name: Add coverage report to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/**/build/reports/jacoco/**/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
update-comment: true
# min-coverage-overall: 40
# min-coverage-changed-files: 60