Skip to content

Commit 528bfe7

Browse files
committed
feat: enhance pre-commit workflow with Gradle caching and build scan integration
1 parent 2704f3a commit 528bfe7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,23 @@ jobs:
2929
java-version: 25
3030
cache: gradle
3131

32+
- name: Cache Gradle dependencies
33+
uses: actions/cache@v4
34+
with:
35+
path: |
36+
~/.gradle/caches
37+
~/.gradle/wrapper
38+
~/.gradle/daemon
39+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle/wrapper/gradle-wrapper.properties') }}
40+
restore-keys: |
41+
${{ runner.os }}-gradle-
42+
3243
- name: Setup Gradle
3344
uses: gradle/actions/setup-gradle@v5
45+
with:
46+
build-scan-publish: true
47+
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
48+
build-scan-terms-of-use-agree: "yes"
3449

3550
- name: Set up Python
3651
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)