Merge pull request #1 from cohenItay/master #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |