Skip to content

docs: add coverage badge #7

docs: add coverage badge

docs: add coverage badge #7

Workflow file for this run

name: Build
on:
push:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Test with Gradle
run: ./gradlew test
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
jacoco-csv-file: generator/build/reports/jacoco/test/jacocoTestReport.csv
badges-directory: .github/badges
generate-coverage-badge: false
generate-branches-badge: false
generate-coverage-endpoint: true
coverage-endpoint-filename: jacoco.json
generate-summary: true
summary-filename: coverage-summary.json
- name: Upload
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: ".github/badges/**"
commit_message: "ci: update badge"