Format, Analyze and Test #300
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: Format, Analyze and Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| schedule: | |
| # runs the CI weekly | |
| - cron: "0 0 * * 0" | |
| jobs: | |
| default_run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| cache: true | |
| channel: 'stable' | |
| - run: flutter doctor | |
| - run: flutter pub get | |
| - run: dart format --set-exit-if-changed -l 120 lib | |
| - run: flutter analyze lib | |
| - run: flutter test --no-pub --coverage | |
| - name: Upload coverage to codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true |