-
Notifications
You must be signed in to change notification settings - Fork 51
38 lines (36 loc) · 915 Bytes
/
build.yml
File metadata and controls
38 lines (36 loc) · 915 Bytes
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
name: Java CI with Maven
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
checks: write
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- run: mvn -B verify
- uses: dorny/test-reporter@v3
if: always()
with:
name: JUnit Tests
path: '**/target/surefire-reports/TEST-*.xml'
reporter: java-junit
fail-on-error: false
- uses: madrapps/jacoco-report@v1.7.2
with:
paths: ${{ github.workspace }}/**/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80