From 337dce7d9ed9ce0646186cda4057760a774bf529 Mon Sep 17 00:00:00 2001 From: Nikita Fedrunov <66663241+fedrunov@users.noreply.github.com> Date: Tue, 27 Sep 2022 17:45:50 +0200 Subject: [PATCH] tests workflow will now update gradle cache when run against develop (#7238) --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b049346548..1816fe3a78 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,6 +31,9 @@ jobs: distribution: 'adopt' java-version: '11' - uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ github.ref != 'refs/heads/develop' }} + gradle-home-cache-cleanup: ${{ github.ref == 'refs/heads/develop' }} - name: Run screenshot tests run: ./gradlew verifyScreenshots $CI_GRADLE_ARG_PROPERTIES