Skip to content

Update s4u/setup-maven-action action to v1.16.0 #13

Update s4u/setup-maven-action action to v1.16.0

Update s4u/setup-maven-action action to v1.16.0 #13

Workflow file for this run

name: 'Generate Coverage Report'
on:
push:
branches:
- main
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
name: Coverage on Ubuntu
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 and Maven
uses: s4u/[email protected]
with:
java-distribution: 'temurin'
java-version: '17'
- name: Generate coverage with JaCoCo
run: mvn clean jacoco:prepare-agent test jacoco:report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./target/site/jacoco/jacoco.xml