From 5087fb25afa45b9677844cdb767f5943ceff6b3c Mon Sep 17 00:00:00 2001 From: guilherme silva Date: Sun, 7 Apr 2024 11:38:55 -0300 Subject: [PATCH] feat: Add Flutter Clean workflow in GitHub Actions --- .github/workflows/main.yaml | 31 +++++++++++++++++++++++++++++++ README.md | 6 ++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..c744b1e --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,31 @@ +name: Flutter Clean + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.19.5 + - run: flutter --version + + - name: Install dependencies + run: flutter pub get + + - name: Run tests + run: flutter test diff --git a/README.md b/README.md index f7d6dd6..a2bae0e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Flutter - Clean Architecture with State Management comparison +![Build Status](https://github.com/guilherme-v/flutter-clean-architecture-example/actions/workflows/main/badge.svg) + ![app](./art/app.png?raw=true) ## Goals @@ -23,12 +25,12 @@ An overview of the current state management libraries explored is presented belo | State Manager | Applied | Unit tests | Widget tests | |---------------|---------|:----------:|--------------| -| Provider | Yes | Yes | In Progress | +| Provider | Yes | Yes | Yes | | Riverpod | Yes | Yes | In Progress | | Bloc | Yes | Yes | Yes | | Cubit | Yes | Yes | Yes | | GetIt | Yes | Yes | Yes | -| MobX | Yes | Yes | In Progress | +| MobX | Yes | Yes | Yes | ## Tip