-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.23 KB
/
ci.yml
File metadata and controls
53 lines (42 loc) · 1.23 KB
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
45
46
47
48
49
50
51
52
name: CI
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
- name: Run tests
run: ./gradlew test --stacktrace
continue-on-error: true
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: "**/build/test-results/**/TEST-*.xml"
- name: Upload JaCoCo HTML report
uses: actions/upload-artifact@v4
if: always()
with:
name: jacoco-report-html
path: build/reports/jacoco/test/html
retention-days: 14
- name: Publish JaCoCo coverage to pull request
uses: madrapps/jacoco-report@v1.7.1
if: always()
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 70
min-coverage-changed-files: 60
title: Code Coverage Report
update-comment: true