docs: Enhance README with comprehensive comparisons and add v2.2.0 ro… #32
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: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| # Pure Dart package - flutter_debounce_throttle_core | |
| core: | |
| name: Core Package (Pure Dart) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: packages/flutter_debounce_throttle_core | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project source | |
| run: dart analyze --fatal-infos | |
| - name: Run tests | |
| run: | | |
| if [ -d "test" ]; then | |
| dart test | |
| else | |
| echo "No test directory found, skipping tests" | |
| fi | |
| # Flutter package - flutter_debounce_throttle | |
| flutter: | |
| name: Flutter Package | |
| runs-on: ubuntu-latest | |
| needs: core | |
| defaults: | |
| run: | |
| working-directory: packages/flutter_debounce_throttle | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: 'stable' | |
| - name: Setup path dependencies | |
| run: | | |
| cat > pubspec_overrides.yaml << 'EOF' | |
| dependency_overrides: | |
| flutter_debounce_throttle_core: | |
| path: ../flutter_debounce_throttle_core | |
| EOF | |
| - name: Install dependencies | |
| run: flutter pub get --no-example | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project source | |
| run: flutter analyze --fatal-infos | |
| # Flutter Hooks package - flutter_debounce_throttle_hooks | |
| hooks: | |
| name: Hooks Package | |
| runs-on: ubuntu-latest | |
| needs: flutter | |
| defaults: | |
| run: | |
| working-directory: packages/flutter_debounce_throttle_hooks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: 'stable' | |
| - name: Setup path dependencies | |
| run: | | |
| cat > pubspec_overrides.yaml << 'EOF' | |
| dependency_overrides: | |
| flutter_debounce_throttle_core: | |
| path: ../flutter_debounce_throttle_core | |
| flutter_debounce_throttle: | |
| path: ../flutter_debounce_throttle | |
| EOF | |
| - name: Install dependencies | |
| run: flutter pub get --no-example | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project source | |
| run: flutter analyze --fatal-infos | |
| # Main package tests (root) | |
| main-tests: | |
| name: Main Package Tests | |
| runs-on: ubuntu-latest | |
| needs: [core, flutter, hooks] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: 'stable' | |
| - name: Setup Melos | |
| run: dart pub global activate melos | |
| - name: Bootstrap monorepo | |
| run: melos bootstrap | |
| continue-on-error: true | |
| - name: Run root tests | |
| run: flutter test | |
| continue-on-error: true |