From be70e34c7e8680cb48c06d673718cda678f230e2 Mon Sep 17 00:00:00 2001 From: Nicolas Delsaux Date: Tue, 26 Sep 2023 17:03:45 +0200 Subject: [PATCH] Didn't knew I could use a glob pattern here --- .../on_pull_request_push_run_test_and_coverage.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on_pull_request_push_run_test_and_coverage.yml b/.github/workflows/on_pull_request_push_run_test_and_coverage.yml index 17dde121..50e2dde5 100644 --- a/.github/workflows/on_pull_request_push_run_test_and_coverage.yml +++ b/.github/workflows/on_pull_request_push_run_test_and_coverage.yml @@ -19,14 +19,11 @@ jobs: TOKEN_FOR_GITHUB: ${{ secrets.TOKEN_FOR_GITHUB }} TOKEN_FOR_GITLAB: ${{ secrets.TOKEN_FOR_GITLAB }} # Seen on https://stackoverflow.com/a/70405596/15619 - - name: Detect all jacoco.xml files - id: list-reports - run: echo "JACOCO_REPORTS=$(find . -iname jacoco.xml)" >> $GITHUB_OUTPUT - name: Add coverage to PR id: jacoco - uses: madrapps/jacoco-report@v1.3 + uses: madrapps/jacoco-report@v1.6.1 with: - paths: ${{ steps.list-reports.outputs.GITHUB_OUTPUT }} + paths: **/target/site/jacoco/jacoco.xml token: "${{ secrets.GITHUB_TOKEN }}" min-coverage-overall: 10 min-coverage-changed-files: 50