release: prepare location 10.0.0, location_platform_interface 7.0.0, location_web 7.0.0 #218
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: location prepare | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [master, develop] | |
| jobs: | |
| prepare-flutter: | |
| name: Flutter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up Melos | |
| run: dart pub global activate melos | |
| - name: melos bootstrap | |
| run: melos bootstrap | |
| - name: Check code formatting | |
| if: success() || failure() | |
| run: melos run format --no-select | |
| - name: Run analyzer | |
| if: success() || failure() | |
| run: melos run analyze --no-select | |
| - name: Run tests | |
| if: success() || failure() | |
| run: melos run test --no-select | |
| prepare-android: | |
| name: Android | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up Melos | |
| run: dart pub global activate melos | |
| - name: melos bootstrap | |
| run: melos bootstrap | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Build example app | |
| working-directory: packages/location/example | |
| run: flutter build apk --debug | |
| - name: Run ktlint | |
| working-directory: packages/location/example/android | |
| run: ./gradlew :location:ktlintCheck | |
| prepare-ios: | |
| name: iOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up Melos | |
| run: dart pub global activate melos | |
| - name: melos bootstrap | |
| run: melos bootstrap | |
| - name: Build example app | |
| working-directory: packages/location/example | |
| run: flutter build ios --debug --simulator | |
| prepare-macos: | |
| name: macOS | |
| runs-on: macos-latest | |
| # `patrol` (added to the example app's dev_dependencies for the e2e | |
| # suite, see .github/workflows/e2e.yaml) has an upstream bug: its | |
| # Package.swift is missing a FlutterFramework dependency (visible as a | |
| # TODO comment in patrol's own source), which breaks `flutter build | |
| # macos` for this whole app regardless of whether a given test touches | |
| # Patrol's API -- Flutter's plugin registrant unconditionally imports it | |
| # for every platform the app supports. iOS is unaffected (verified by | |
| # building it directly); this is specific to macOS's stricter SPM/ | |
| # CocoaPods interaction. Non-blocking until patrol fixes this upstream. | |
| continue-on-error: true | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up Melos | |
| run: dart pub global activate melos | |
| - name: melos bootstrap | |
| run: melos bootstrap | |
| - name: Build example app | |
| working-directory: packages/location/example | |
| run: flutter build macos --debug |