This repository was archived by the owner on Jan 31, 2026. It is now read-only.
Merge pull request #92 from SmartVive/main #231
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.35.5" | |
| FLUTTER_VERSION_NEWEST: "3.35.5" | |
| jobs: | |
| format: | |
| name: Format (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 | |
| working-directory: rhttp | |
| run: flutter pub get | |
| - name: Check format | |
| working-directory: rhttp | |
| run: dart format --set-exit-if-changed lib bin test | |
| - name: Analyze | |
| working-directory: rhttp | |
| run: flutter analyze | |
| format_oldest: | |
| name: Format (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: Remove example | |
| working-directory: rhttp | |
| run: rm -rf example | |
| - name: Downgrade | |
| working-directory: rhttp | |
| run: flutter pub downgrade | |
| - name: Check format | |
| working-directory: rhttp | |
| run: dart format --set-exit-if-changed lib bin test | |
| - name: Analyze | |
| working-directory: rhttp | |
| run: flutter analyze | |
| test: | |
| name: Test | |
| 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 | |
| working-directory: rhttp | |
| run: flutter pub get | |
| - name: Test | |
| working-directory: rhttp | |
| run: flutter test |