From 5666cf52d69b3132569311f02b45763098e9d50b Mon Sep 17 00:00:00 2001 From: Kendi J Date: Sat, 14 Oct 2023 15:16:46 +0300 Subject: [PATCH 1/4] 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); } }); From 25cb031c22787b5630055b3e45c2b466a0ff97e0 Mon Sep 17 00:00:00 2001 From: Kendi J Date: Sat, 14 Oct 2023 15:40:36 +0300 Subject: [PATCH 2/4] workflows rm Code Format --- .github/workflows/working_branch.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/working_branch.yml b/.github/workflows/working_branch.yml index 87a8f4b..da0d23a 100644 --- a/.github/workflows/working_branch.yml +++ b/.github/workflows/working_branch.yml @@ -15,7 +15,7 @@ jobs: analysis: name: format runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v3 - name: Install Flutter @@ -25,8 +25,9 @@ jobs: channel: 'stable' architecture: x64 - - name: Check Code Format - run: dart format . --set-exit-if-changed + # - name: Check Code Format + # run: dart format . --set-exit-if-changed + - name: Generate code run: dart run build_runner build - name: Analyze code From 8e998271ed55b9499658b27b9cab6ae20e24a39c Mon Sep 17 00:00:00 2001 From: Kendi J Date: Sat, 14 Oct 2023 15:44:50 +0300 Subject: [PATCH 3/4] workflows rm Genarate Code --- .github/workflows/working_branch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/working_branch.yml b/.github/workflows/working_branch.yml index da0d23a..a23aac0 100644 --- a/.github/workflows/working_branch.yml +++ b/.github/workflows/working_branch.yml @@ -27,9 +27,8 @@ jobs: # - 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 . From 4286720f7903894426fb0d589eac8b9f8f608b38 Mon Sep 17 00:00:00 2001 From: Kendi J <32739391+KendiJ@users.noreply.github.com> Date: Sat, 14 Oct 2023 15:48:08 +0300 Subject: [PATCH 4/4] Update working_branch.yml - removed dart analyze --- .github/workflows/working_branch.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/working_branch.yml b/.github/workflows/working_branch.yml index a23aac0..7605549 100644 --- a/.github/workflows/working_branch.yml +++ b/.github/workflows/working_branch.yml @@ -29,8 +29,8 @@ jobs: # run: dart format . --set-exit-if-changed - - name: Analyze code - run: dart analyze . + # - name: Analyze code + # run: dart analyze . build: @@ -65,4 +65,4 @@ jobs: # run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi - \ No newline at end of file +