File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66 types : [opened, reopened]
77
8+ env :
9+ JACOCO_VERSION : " 0.8.14"
10+
811jobs :
912 build :
1013 runs-on : ubuntu-latest
2225 id : cache-jacoco
2326 uses : actions/cache@v4
2427 with :
25- path : ~/jacoco-0.8.14
26- key : ${{ runner.os }}-jacoco-cli-${{ hashFiles('generate-jacoco-report.sh') }}
27- restore-keys : |
28- ${{ runner.os }}-jacoco-cli-
28+ path : ${{ github.workspace }}/jacoco-${{ env.JACOCO_VERSION }}
29+ key : ${{ runner.os }}-jacoco-cli-${{ env.JACOCO_VERSION }}
2930
3031 - name : Build with Maven
3132 run : mvn --batch-mode --update-snapshots package
Original file line number Diff line number Diff line change 22
33# Define paths
44PROJECT_ROOT=" ${PROJECT_ROOT:- $(pwd)} "
5- JACOCO_VERSION=" 0.8.14"
5+ JACOCO_VERSION=" ${JACOCO_VERSION :- 0.8.14} " # fallback to 0.8.14 if env var is unset
66JACOCO_DIR=" ${PROJECT_ROOT} /jacoco-$JACOCO_VERSION "
77JACOCO_CLI_JAR=" $JACOCO_DIR /lib/jacococli.jar"
88MERGED_EXEC=" $PROJECT_ROOT /target/coverage-reports/merged.exec"
Original file line number Diff line number Diff line change 22
33# Define paths
44PROJECT_ROOT=" ${PROJECT_ROOT:- $(pwd)} "
5- JACOCO_VERSION=" 0.8.14"
5+ JACOCO_VERSION=" ${JACOCO_VERSION :- 0.8.14} " # fallback to 0.8.14 if env var is unset
66JACOCO_DIR=" ${PROJECT_ROOT} /jacoco-$JACOCO_VERSION "
77JACOCO_CLI_JAR=" $JACOCO_DIR /lib/jacococli.jar"
88
You can’t perform that action at this time.
0 commit comments