From a41b81cd701baa6ec0d1595c778f39a6922360b5 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Wed, 12 Jul 2023 13:26:30 +0200 Subject: [PATCH] Allow builds on `develop` to write to the Gradle cache, update task names (#3834) --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfea60cfe..c9f5ac74f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,15 +25,17 @@ jobs: - name: Gradle Build Action uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} - name: ktlint run: ./gradlew clean ktlintCheck - name: Regular lint - run: ./gradlew lintGreenDebug + run: ./gradlew app:lintGreenDebug - name: Test run: ./gradlew app:testGreenDebugUnitTest - name: Build - run: ./gradlew app:greenDebug + run: ./gradlew app:buildGreenDebug