From 83b287e966f7ff17fd4543e0dc12e0b9e9c0554e Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 03:53:19 +0000 Subject: [PATCH 1/6] added setup gradle and removed setup-java caching --- .github/workflows/qa.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index a5f8d63..f75a15b 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -19,7 +19,9 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Run Detekt run: ./gradlew detekt --no-daemon @@ -34,7 +36,9 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Grant execute permission for gradlew run: chmod +x gradlew From f48452de56005f47fe397fceff7f01f78643eec9 Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 03:53:44 +0000 Subject: [PATCH 2/6] added setup gradle and removed setup-java caching --- .github/workflows/qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index f75a15b..ec192a7 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -36,7 +36,7 @@ jobs: with: java-version: '17' distribution: 'temurin' - + #caches the gradle builds and tests and hence skip unit tests abd builds for unchanged modules saving a lot of time - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 From 08784853ee66a8fe57685eeea718e49f538c722a Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 04:15:31 +0000 Subject: [PATCH 3/6] testing the build cache if it saves time or no --- .github/workflows/qa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index ec192a7..3df23d0 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -36,7 +36,7 @@ jobs: with: java-version: '17' distribution: 'temurin' - #caches the gradle builds and tests and hence skip unit tests abd builds for unchanged modules saving a lot of time + #caches the gradle builds and tests and hence skip unit tests and builds for unchanged modules saving a lot of time - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 From acf9517002a4f4bbfeced5d56cdecab39c9635e4 Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 04:29:54 +0000 Subject: [PATCH 4/6] testing the build cache if it saves time or no --- .github/workflows/qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 3df23d0..59607b3 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -24,7 +24,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Run Detekt - run: ./gradlew detekt --no-daemon + run: ./gradlew detekt # here we test and build the app in the same github runner so that no extra runner is used and saves time in setting up the environment again during build test-and-build: runs-on: ubuntu-latest @@ -82,7 +82,7 @@ jobs: KEYSTORE_FILE: "../release.keystore" KEY_ALIAS: "mock-alias" KEY_PASSWORD: "mock-password" - run: ./gradlew assembleRelease --no-daemon -x uploadCrashlyticsMappingFileRelease + run: ./gradlew assembleRelease -x uploadCrashlyticsMappingFileRelease - name: Upload Test Report uses: actions/upload-artifact@v4 From 6e480bdd3c7393d687d3b6aa00162d8fe46f6d49 Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 05:09:13 +0000 Subject: [PATCH 5/6] testing if the gradle setup saves time --- .github/workflows/qa.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 59607b3..542bbf6 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - + - name: Run Detekt run: ./gradlew detekt # here we test and build the app in the same github runner so that no extra runner is used and saves time in setting up the environment again during build @@ -39,7 +39,7 @@ jobs: #caches the gradle builds and tests and hence skip unit tests and builds for unchanged modules saving a lot of time - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - + - name: Grant execute permission for gradlew run: chmod +x gradlew From 4a65d21969997733b9de3cde6d1f1a8776ea238c Mon Sep 17 00:00:00 2001 From: Vishal Bhat Soori Date: Fri, 6 Mar 2026 05:25:54 +0000 Subject: [PATCH 6/6] testing the cache working --- .../kotlin/com/deepfakeshield/av/engine/AntivirusEngineTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/av/src/test/kotlin/com/deepfakeshield/av/engine/AntivirusEngineTest.kt b/av/src/test/kotlin/com/deepfakeshield/av/engine/AntivirusEngineTest.kt index 3b137d9..a16ee8f 100644 --- a/av/src/test/kotlin/com/deepfakeshield/av/engine/AntivirusEngineTest.kt +++ b/av/src/test/kotlin/com/deepfakeshield/av/engine/AntivirusEngineTest.kt @@ -109,3 +109,4 @@ class AntivirusEngineTest { assertTrue(risk.recommendedActions.any { it.type.name.contains("QUARANTINE") }) } } +