feat: add avoid_similar_names and feature_envy rules to changelog #1227
Workflow file for this run
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: Application ON Push & PR DO Code check | |
| on: [ push, pull_request ] | |
| jobs: | |
| code-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - name: Check Flutter SDK version | |
| run: flutter --version | |
| - name: Get dependencies | |
| run: | | |
| find . -name pubspec.yaml -exec sh -c "dirname {} | xargs flutter pub get --directory" \; | |
| - name: Check formatting | |
| run: dart format . --set-exit-if-changed | |
| - name: Run default analyzer | |
| run: dart analyze | |
| - name: Run tests | |
| run: | | |
| # run tests if `test` folder exists | |
| if [ -d test ] | |
| then | |
| dart test -r expanded | |
| else | |
| echo "Tests not found." | |
| fi |