docs: update readme #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: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| FLUTTER_VERSION_OLDEST: "3.19.6" | |
| FLUTTER_VERSION_NEWEST: "3.24.3" | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ env.FLUTTER_VERSION_NEWEST }} | |
| channel: "stable" | |
| - name: Dependencies | |
| run: dart pub get | |
| - name: Check format | |
| run: dart format --set-exit-if-changed lib bin test | |
| - name: Analyze | |
| run: dart analyze | |
| test: | |
| name: Test (newest Flutter version) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ env.FLUTTER_VERSION_NEWEST }} | |
| channel: "stable" | |
| - name: Dependencies | |
| run: dart pub get | |
| - name: Test | |
| run: dart test | |
| test_legacy: | |
| name: Test (oldest Flutter version) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ env.FLUTTER_VERSION_OLDEST }} | |
| channel: "stable" | |
| - name: Dependencies | |
| run: dart pub get | |
| - name: Test | |
| run: dart test |