Skip to content

Commit 320542d

Browse files
committed
removed any hardcoded jacoco ver
1 parent 7f056f0 commit 320542d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: cache-jacoco
2626
uses: actions/cache@v4
2727
with:
28-
path: ${{ github.workspace }}/jacoco-0.8.14
28+
path: ${{ github.workspace }}/jacoco-${{ env.JACOCO_VERSION }}
2929
key: ${{ runner.os }}-jacoco-cli-${{ env.JACOCO_VERSION }}
3030

3131
- name: Build with Maven

generate-jacoco-report.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Define paths
44
PROJECT_ROOT="${PROJECT_ROOT:-$(pwd)}"
5+
JACOCO_VERSION="${JACOCO_VERSION:-0.8.14}" #fallback to 0.8.14 if env var is unset
56
JACOCO_DIR="${PROJECT_ROOT}/jacoco-$JACOCO_VERSION"
67
JACOCO_CLI_JAR="$JACOCO_DIR/lib/jacococli.jar"
78
MERGED_EXEC="$PROJECT_ROOT/target/coverage-reports/merged.exec"

0 commit comments

Comments
 (0)