Skip to content

✨ refactor: lift dependency injection to main and add docume… #8

✨ refactor: lift dependency injection to main and add docume…

✨ refactor: lift dependency injection to main and add docume… #8

name: Code Quality
on: [ push ]
jobs:
check-code-quality-and-tests:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup flutter
uses: subosito/flutter-action@v1
with:
channel: stable
- name: Get packages
run: flutter pub get
- name: Check format errors
run: dart format --set-exit-if-changed .
- name: Check lint errors
run: flutter analyze .
- name: Run tests with coverage and random order
run: flutter test --coverage --test-randomize-ordering-seed random
- name: Very Good Coverage
uses: VeryGoodOpenSource/[email protected]
with:
min_coverage: 96
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Turskyi/flutter_onion_architecture_counter