Skip to content

Merge pull request #1753 from jenkinsci/dependabot/github_actions/cod… #3259

Merge pull request #1753 from jenkinsci/dependabot/github_actions/cod…

Merge pull request #1753 from jenkinsci/dependabot/github_actions/cod… #3259

Workflow file for this run

name: 'CodeCov'
on:
push:
branches:
- master
- main
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
name: Create and upload coverage report
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
check-latest: true
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Generate coverage with JaCoCo
run: mvn -V --color always -ntp clean verify '-Dgpg.skip'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.4.0
with:
files: 'target/site/jacoco/jacoco.xml'
token: ${{secrets.CODECOV_TOKEN}}