Skip to content

Flutter and Dart Ci added #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
52 changes: 52 additions & 0 deletions .github/workflows/Flutter_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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 Kotlin
run: sudo apt-get install -y kotlin

- 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