Skip to content

Move report base path handling to OutputReport #9987

Move report base path handling to OutputReport

Move report base path handling to OutputReport #9987

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- main
pull_request:
env:
ORG_GRADLE_PROJECT_enablePTS: false
permissions:
contents: read
jobs:
publish-code-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Generate Coverage Report
run: ./gradlew jacocoMergedReport
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- name: Publish Coverage
if: success()
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4
with:
files: ./code-coverage-report/build/reports/jacoco/jacocoMergedReport/jacocoMergedReport.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}