Skip to content

Commit

Permalink
workflows added analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendi J authored and Kendi J committed Oct 14, 2023
1 parent e106bb9 commit 5666cf5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/working_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 : |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

2 changes: 1 addition & 1 deletion lib/presentation/cubit/weather_forecast_cubit_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WeatherForecastCubitCubit extends Cubit<WeatherForecastCubitState> {

mappedResponse.forEach((key, value) {
if(key.hour == hourOfWeatherToBeDisplayed) {
print(key);
// print(key);
dataToBeReturned.add(value);
}
});
Expand Down

0 comments on commit 5666cf5

Please sign in to comment.