Merge pull request #237 from RafaelBarbosatec/test/core-widget-tests #9
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: | |
| jobs: | |
| analyze-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Analyze | |
| # --no-fatal-infos: the lib still has pre-existing deprecation infos | |
| # (withOpacity) that must not fail the build while old Flutter | |
| # versions are supported. Errors and warnings still fail. | |
| run: flutter analyze --no-pub --no-fatal-infos | |
| - name: Test | |
| run: flutter test --no-pub |