Skip to content

Commit

Permalink
fix(ci): run dart format lib && flutter analyze lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vareversat committed Apr 16, 2023
1 parent c57d08e commit 715261b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 67 deletions.
124 changes: 62 additions & 62 deletions .github/workflows/flutter.analyze-test.action.yaml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: Flutter - Analyze & Test

on:
workflow_call:
inputs:
flutter_version:
description: 'The Flutter used (ex: 2.5.1)'
required: true
type: string
secrets:
passphrase:
description: 'The passphrase to decrypt the configuration'
required: true


jobs:
analyze:
name: 'Analyze'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter analyze'
run: flutter analyze
format:
name: 'Format'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter format'
run: flutter format lib --set-exit-if-changed
test:
name: 'Test'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter test (with coverage)'
run: flutter test --coverage --test-randomize-ordering-seed random
- name: 'Upload coverage report'
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: Flutter - Analyze & Test

on:
workflow_call:
inputs:
flutter_version:
description: 'The Flutter used (ex: 2.5.1)'
required: true
type: string
secrets:
passphrase:
description: 'The passphrase to decrypt the configuration'
required: true


jobs:
analyze:
name: 'Analyze'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter analyze'
run: flutter analyze
format:
name: 'Format'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter format'
run: dart format lib --set-exit-if-changed
test:
name: 'Test'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: 'Setup flutter action'
uses: subosito/[email protected]
with:
flutter-version: ${{ inputs.flutter_version }}
- name: 'Flutter test (with coverage)'
run: flutter test --coverage --test-randomize-ordering-seed random
- name: 'Upload coverage report'
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/
4 changes: 0 additions & 4 deletions lib/bloc/scroll_status/scroll_status_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class ScrollStatusBloc extends Bloc<ScrollStatusEvent, ScrollStatusState> {
);
}





Future<void> _onScrollChanged(
ScrollStatusChanged event, Emitter<ScrollStatusState> emit) async {
emit(
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() async {
);
MobileAds.instance.initialize();

//Bloc.observer = SimpleBlocObserver();
Bloc.observer = SimpleBlocObserver();

runApp(
Chabo(
Expand Down

0 comments on commit 715261b

Please sign in to comment.