Merge pull request #31 from DEV1-Softworks/chore/pubdev-preparation #8
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.41.5' | |
| channel: stable | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Test with coverage | |
| run: flutter test --coverage | |
| - name: Check coverage ≥ 80 % | |
| uses: VeryGoodOpenSource/very_good_coverage@v3 | |
| with: | |
| path: coverage/lcov.info | |
| min_coverage: 80 | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: coverage/lcov.info | |
| if: always() |