From 83d43657d82038096455f506cad77a53241305a1 Mon Sep 17 00:00:00 2001 From: Islam Hani Riad Date: Mon, 18 Mar 2024 13:32:13 +0200 Subject: [PATCH] make github actions run tests --- android/fastlane/Fastfile | 27 ++------------------------- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index f97dd38..ceb581b 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -1,33 +1,9 @@ -# This file contains the fastlane.tools configuration -# You can find the documentation at https://docs.fastlane.tools -# -# For a list of all available actions, check out -# -# https://docs.fastlane.tools/actions -# -# For a list of all available plugins, check out -# -# https://docs.fastlane.tools/plugins/available-plugins -# - -# Uncomment the line if you want fastlane to automatically update itself -# update_fastlane - default_platform(:android) platform :android do desc "Runs all the tests" lane :test do - gradle(task: "test") - end - - desc "Submit a new Beta Build to Crashlytics Beta" - lane :beta do - gradle(task: "clean assembleRelease") - crashlytics - - # sh "your_script.sh" - # You can also use other beta testing services here + sh "flutter test ../../test" end desc "Deploy a new version to the Google Play" @@ -38,6 +14,7 @@ platform :android do desc "deploy to firebase" lane :firebase_deploy do sh "flutter clean" + test sh "flutter build apk --release --flavor production --target lib/main_production.dart --no-tree-shake-icons" release = firebase_app_distribution( app: "1:307455058391:android:cf87da1992b043eaf76b92", diff --git a/pubspec.yaml b/pubspec.yaml index 69da214..5b3682d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: clinic description: "A new Flutter project." publish_to: 'none' -version: 0.1.0 +version: 0.2.0 environment: sdk: '>=3.2.6 <4.0.0'