diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e445613..4f69fb4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -9,9 +9,9 @@ name: Java CI with Gradle on: push: - branches: [ "v1.x.x", "v2.x.x" ] + branches: [ "v1.x.x", "v2.x.x", "testaction" ] pull_request: - branches: [ "v1.x.x", "v2.x.x" ] + branches: [ "v1.x.x", "v2.x.x", "testaction" ] release: types: [published] @@ -33,6 +33,17 @@ jobs: java-version: | 21 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. # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md