Skip to content

fix: try to fix github action #10

fix: try to fix github action

fix: try to fix github action #10

Workflow file for this run

name: Test
on: [ workflow_dispatch, push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: s4u/[email protected]
- name: Build with Maven
run: mvn -B test
- name: Generate JaCoCo Badge
id: jacoco
uses: cicirello/jacoco-badge-generator@v2
with:
generate-branches-badge: true
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push the badge (if it changed)
uses: EndBug/[email protected]
with:
message: 'commit badge'
add: '*.svg'
author_email: "[email protected]"
author_name: "pierresomny"
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v2
with:
name: jacoco-report
path: target/site/jacoco/