-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (27 loc) · 858 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
name: Build and test
on: [push]
jobs:
Build-And-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and test
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
- name: Build and test with Gradle
run: ./gradlew clean build --no-daemon
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
generate-branches-badge: true
jacoco-csv-file: lib/build/reports/jacoco/test/jacocoTestReport.csv
- name: Commit the JaCoCo badge if it changed
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: 'commit badge'
add: '.github/badges/jacoco.svg'