From 1ff22f3af090dafcd5369721e7b7dbbd6deacccb Mon Sep 17 00:00:00 2001 From: samarsajad <142666229+samarsajad@users.noreply.github.com> Date: Sat, 25 May 2024 12:26:52 +0530 Subject: [PATCH 1/2] Flutter and Dart Ci added --- .github/workflows/Flutter_ci.yml | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/Flutter_ci.yml diff --git a/.github/workflows/Flutter_ci.yml b/.github/workflows/Flutter_ci.yml new file mode 100644 index 0000000..179dd1b --- /dev/null +++ b/.github/workflows/Flutter_ci.yml @@ -0,0 +1,49 @@ +name: Flutter and Dart CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.19.0' + + - name: Set up Dart + uses: dart-lang/setup-dart@v1 + with: + sdk: 'stable' + + - name: Install Flutter dependencies + run: flutter pub get + + - name: Install Dart dependencies + run: dart pub get + + - name: Run Flutter tests + run: flutter test + + - name: Run Dart tests + run: dart test + + - name: Build APK + run: flutter build apk --release + + - name: Archive and upload Flutter APK + uses: actions/upload-artifact@v2 + with: + name: build + path: build/app/outputs/flutter-apk/app-release.apk \ No newline at end of file From bf3d7c094dca2ebd0abc795b7c50511018f4fd46 Mon Sep 17 00:00:00 2001 From: samarsajad <142666229+samarsajad@users.noreply.github.com> Date: Sat, 25 May 2024 16:56:19 +0530 Subject: [PATCH 2/2] kotlin --- .github/workflows/Flutter_ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Flutter_ci.yml b/.github/workflows/Flutter_ci.yml index 179dd1b..7dc9459 100644 --- a/.github/workflows/Flutter_ci.yml +++ b/.github/workflows/Flutter_ci.yml @@ -25,7 +25,10 @@ jobs: - name: Set up Dart uses: dart-lang/setup-dart@v1 with: - sdk: 'stable' + sdk: 'stable' + + - name: Install Kotlin + run: sudo apt-get install -y kotlin - name: Install Flutter dependencies run: flutter pub get