Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Merge pull request #73 from 1and1/39dadependabot/maven/org.eclipse.je… #113

Merge pull request #73 from 1and1/39dadependabot/maven/org.eclipse.je…

Merge pull request #73 from 1and1/39dadependabot/maven/org.eclipse.je… #113

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 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- name: Build with Maven
run: mvn -B test
- name: Generate JaCoCo Badge
id: jacoco
uses: cicirello/[email protected]
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'sfuhrm'
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@v3
with:
name: jacoco-report
path: target/site/jacoco/