From 5666cf52d69b3132569311f02b45763098e9d50b Mon Sep 17 00:00:00 2001 From: Kendi J Date: Sat, 14 Oct 2023 15:16:46 +0300 Subject: [PATCH] workflows added analysis --- .github/workflows/working_branch.yml | 25 ++++++++++++++++++- README.md | 1 + .../cubit/weather_forecast_cubit_cubit.dart | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/working_branch.yml b/.github/workflows/working_branch.yml index d54d4af..87a8f4b 100644 --- a/.github/workflows/working_branch.yml +++ b/.github/workflows/working_branch.yml @@ -11,6 +11,27 @@ on: jobs: + + analysis: + name: format + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.13.3' + channel: 'stable' + architecture: x64 + + - name: Check Code Format + run: dart format . --set-exit-if-changed + - name: Generate code + run: dart run build_runner build + - name: Analyze code + run: dart analyze . + build: runs-on: ubuntu-latest @@ -26,9 +47,11 @@ jobs: java-version: '12.x' - name : Setup Flutter - uses: subosito/flutter-action@v1 + uses: subosito/flutter-action@v2 with: flutter-version: '3.13.3' + channel: 'stable' + architecture: x64 - name: Flutter Pub get run : | diff --git a/README.md b/README.md index 4fb3ff4..2093cf1 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,4 @@ A few resources to get you started if this is your first Flutter project: For help getting started with Flutter development, view the [online documentation](https://docs.flutter.dev/), which offers tutorials, samples, guidance on mobile development, and a full API reference. + diff --git a/lib/presentation/cubit/weather_forecast_cubit_cubit.dart b/lib/presentation/cubit/weather_forecast_cubit_cubit.dart index 40a259c..f31509f 100644 --- a/lib/presentation/cubit/weather_forecast_cubit_cubit.dart +++ b/lib/presentation/cubit/weather_forecast_cubit_cubit.dart @@ -32,7 +32,7 @@ class WeatherForecastCubitCubit extends Cubit { mappedResponse.forEach((key, value) { if(key.hour == hourOfWeatherToBeDisplayed) { - print(key); + // print(key); dataToBeReturned.add(value); } });