Merge pull request #571 from DevKor-github/feature/issue-544-user-rep… #604
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Flutter Testing | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| - "release/**" | |
| - "hotfix/**" | |
| push: | |
| branches: | |
| - main | |
| - "release/**" | |
| - "hotfix/**" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.44.4" | |
| channel: stable | |
| cache: true | |
| - name: install sql | |
| run: sudo apt-get install sqlite3 libsqlite3-dev | |
| - name: Install packages | |
| run: flutter pub get | |
| - name: Check Flutter version | |
| run: flutter --version | |
| - name: Run generator | |
| run: dart run build_runner build --delete-conflicting-outputs | |
| - name: Check generated Dart policy | |
| run: dart run tool/check_generated_dart_policy.dart | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Run test with coverage | |
| run: flutter test --coverage | |
| - name: Check coverage | |
| run: dart run tool/check_coverage.dart --min=80 | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: flutter-coverage-lcov | |
| path: coverage/lcov.info | |
| if-no-files-found: warn |