Skip to content

Merge pull request #138 from sfuhrm/dependabot/maven/org.apache.maven… #100

Merge pull request #138 from sfuhrm/dependabot/maven/org.apache.maven…

Merge pull request #138 from sfuhrm/dependabot/maven/org.apache.maven… #100

Workflow file for this run

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/