Merge pull request #159 from sfuhrm/dependabot/maven/org.projectlombo… #113
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: Coverage | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 21 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: maven-build | |
- name: Build with Maven | |
run: mvn -B test | |
- name: Generate JaCoCo Badge | |
id: jacoco | |
uses: cicirello/[email protected] | |
with: | |
jacoco-csv-file: radiobrowser4j/target/site/jacoco/jacoco.csv | |
- name: Log coverage percentage | |
run: | | |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | |
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | |
- uses: casperdcl/push-dir@v1 | |
with: | |
message: update static site | |
branch: gh-pages | |
dir: .github/badges | |
history: false | |
nojekyll: true | |
- name: Upload JaCoCo coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: jacoco-report | |
path: radiobrowser4j/target/site/jacoco/ |