name: ๐Ÿงช Run Tests on: push: branches: [master, dev] pull_request: branches: [master, dev] jobs: tests: name: Check lints and tests runs-on: ubuntu-latest steps: - name: ๐Ÿ“ฆ Checkout repository uses: actions/checkout@v4 - name: ๐Ÿ› ๏ธ Set up Flutter uses: subosito/flutter-action@v2 with: channel: 'stable' cache: true - name: ๐Ÿ” Verify Flutter installation run: flutter --version - name: ๐Ÿ“ฅ Install Flutter dependencies run: flutter pub get - name: ๐Ÿšง Enable local development environment (use the local packages) run: dart ./scripts/enable_local_dev.dart - name: ๐Ÿ“ฆ Install dart_quill_delta dependencies run: flutter pub get -C dart_quill_delta - name: ๐Ÿ“ฆ Install flutter_quill_extensions dependencies run: flutter pub get -C flutter_quill_extensions - name: ๐Ÿ“ฆ Install flutter_quill_test dependencies run: flutter pub get -C flutter_quill_test - name: ๐Ÿ” Run Flutter analysis run: flutter analyze - name: ๐Ÿงน Check Dart code formatting run: dart format --set-exit-if-changed . - name: ๐Ÿ” Preview Dart proposed changes run: dart fix --dry-run - name: ๐Ÿ“ฆ Check if package is ready for publishing run: flutter pub publish --dry-run - name: ๐Ÿงช Run Flutter tests run: flutter test - name: ๐Ÿ” Check the translations run: dart ./scripts/ensure_translations_correct.dart