From 7c4e201087bab4c9245091682c875b818379a64d Mon Sep 17 00:00:00 2001 From: Sebastian Roth Date: Sun, 7 Apr 2024 22:25:02 +0100 Subject: [PATCH] adjust workflow --- .github/workflows/main.yml | 11 ++++++----- example/android/build.gradle | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c18dd9aa..c7815033 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,14 +44,15 @@ jobs: run: | ./bin/quality_checks.sh - - name: Android native tests + - name: Build android app & run native tests run: | #!/bin/bash -ex - cd example/android && ls && ./gradlew detekt && ./gradlew testDebugUnitTest + cd example + flutter build apk --debug - - name: Build android app - run: | - cd example && flutter build apk --debug + cd android + ./gradlew detekt + ./gradlew testDebugUnitTest - name: Build iOS app run: | diff --git a/example/android/build.gradle b/example/android/build.gradle index 0bfccf6a..016184d1 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -25,6 +25,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir -} \ No newline at end of file +}