Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ class AntivirusEngineTest {
assertTrue(risk.recommendedActions.any { it.type.name.contains("QUARANTINE") })
}
}

Loading