test better cache

This commit is contained in:
alexcrea 2026-01-10 20:16:26 +01:00
parent 9e0e546367
commit 3866b7a4dd
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -9,9 +9,9 @@ name: Java CI with Gradle
on: on:
push: push:
branches: [ "v1.x.x", "v2.x.x" ] branches: [ "v1.x.x", "v2.x.x", "testaction" ]
pull_request: pull_request:
branches: [ "v1.x.x", "v2.x.x" ] branches: [ "v1.x.x", "v2.x.x", "testaction" ]
release: release:
types: [published] types: [published]
@ -33,6 +33,17 @@ jobs:
java-version: | java-version: |
21 21
distribution: 'temurin' distribution: 'temurin'
cache: gradle
# Setup paperweight cache
- name: Setup paperweight cache
uses: actions/cache@v3
with:
path: |
./nms/*/.gradle/caches/paperweight
key: gradle-submodules-${{ runner.os }}-${{ hashFiles('nms/*/build.gradle*') }}
restore-keys: |
gradle-submodules-${{ runner.os }}-
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md