diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index a5f8d63..542bbf6 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -19,10 +19,12 @@ 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 + 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 @@ -34,8 +36,10 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: gradle - + #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 @@ -78,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 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") }) } } +