Skip to content

Merge pull request #37 from veryfi/feature/PLAT-5496-support-tags #13

Merge pull request #37 from veryfi/feature/PLAT-5496-support-tags

Merge pull request #37 from veryfi/feature/PLAT-5496-support-tags #13

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: '16'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: JUnit 5 tests
run: mvn -B test --file pom.xml
- name: Generate JaCoCo Badge
id: jacoco
uses: cicirello/[email protected]
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
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
message: 'commit badge'
add: '*.svg'
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v2
with:
name: jacoco-report
path: target/site/jacoco/