Skip to content

Adjust JPA classes #184

Adjust JPA classes

Adjust JPA classes #184

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
generate-branches-badge: true
jacoco-csv-file: coverage-report/target/site/jacoco-aggregate/jacoco.csv
- name: Commit the badge (if it changed)
if: ${{ github.event_name != 'pull_request' }}
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'Github workflow'
git config --global user.email '[email protected]'
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
git push
fi
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: coverage-report/target/site/jacoco-aggregate/