-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 957 Bytes
/
main.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
name: build
on: [push]
jobs:
build_job: # job name
runs-on: ubuntu-22.04
steps:
- name: Standard Checkout
uses: actions/[email protected]
- name: Build with Maven
run: mvn -B test
- name: Generate JaCoCo Badge
uses: cicirello/[email protected]
with:
generate-branches-badge: true
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push the badge (if it changed)
uses: EndBug/[email protected]
with:
default_author: github_actions
message: 'Autogenerated JaCoCo coverage badge'
add: '*.svg'
- name: Upload JaCoCo coverage report
uses: actions/[email protected]
with:
name: jacoco-report
path: target/site/jacoco/