From 0d1b5e8a6310591db8e298eebf3c9181f54090f5 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Fri, 12 Apr 2024 14:07:03 +0200 Subject: [PATCH] More "gradle-home-cache-cleanup: true" (#11185) --- .github/workflows/deployment-arm64.yml | 2 ++ .github/workflows/deployment-jdk-ea.yml | 2 ++ .github/workflows/tests-fetchers.yml | 2 ++ .github/workflows/tests.yml | 14 ++++++++++++++ 4 files changed, 20 insertions(+) diff --git a/.github/workflows/deployment-arm64.yml b/.github/workflows/deployment-arm64.yml index 7bbcfe7371d..7f18ceaa490 100644 --- a/.github/workflows/deployment-arm64.yml +++ b/.github/workflows/deployment-arm64.yml @@ -97,6 +97,8 @@ jobs: keychain-password: jabref - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Prepare merged jars and modules dir (macOS) run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" prepareModulesDir - name: Build dmg (macOS) diff --git a/.github/workflows/deployment-jdk-ea.yml b/.github/workflows/deployment-jdk-ea.yml index ca6e668c599..eadf8903387 100644 --- a/.github/workflows/deployment-jdk-ea.yml +++ b/.github/workflows/deployment-jdk-ea.yml @@ -192,6 +192,8 @@ jobs: distribution: 'temurin' - name: Set up Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Prepare merged jars and modules dir # prepareModulesDir is executing a build, which should run through even if no upload to builds.jabref.org is made if: (steps.checksecrets.outputs.secretspresent == 'NO') diff --git a/.github/workflows/tests-fetchers.yml b/.github/workflows/tests-fetchers.yml index 22c95324041..9e5329f5220 100644 --- a/.github/workflows/tests-fetchers.yml +++ b/.github/workflows/tests-fetchers.yml @@ -52,6 +52,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run fetcher tests run: ./gradlew fetcherTest env: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2866290cd24..1101c47a630 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,6 +48,8 @@ jobs: checkstyle_version: '10.3' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run checkstyle using gradle run: ./gradlew checkstyleMain checkstyleTest checkstyleJmh openrewrite: @@ -66,6 +68,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run OpenRewrite run: | ./gradlew rewriteDryRun @@ -85,6 +89,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run modernizer run: | # enable failing of this task if modernizer complains @@ -167,6 +173,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run tests run: xvfb-run --auto-servernum ./gradlew check -x checkstyleJmh -x checkstyleMain -x checkstyleTest -x modernizer env: @@ -207,6 +215,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run tests on PostgreSQL run: ./gradlew databaseTest --rerun-tasks env: @@ -245,6 +255,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Run GUI tests run: xvfb-run --auto-servernum ./gradlew guiTest env: @@ -290,6 +302,8 @@ jobs: distribution: 'temurin' - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true - name: Update test coverage metrics if: (github.ref == 'refs/heads/main') && (steps.checksecrets.outputs.secretspresent == 'YES') run: xvfb-run --auto-servernum ./gradlew jacocoTestReport