chore(main): release 4.0.0-dev.7 #214
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: Contract Gates | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tests-and-coverage: | |
| name: Tests & coverage (gating) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter SDK | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: '3.44.2' | |
| cache: true | |
| - name: Install mcp_server_dart dependencies | |
| working-directory: mcp_server_dart | |
| run: flutter pub get | |
| - name: Run mcp_server_dart tests with coverage | |
| working-directory: mcp_server_dart | |
| env: | |
| HOME: /tmp | |
| DART_SUPPRESS_ANALYTICS: 'true' | |
| run: | | |
| dart pub global activate coverage | |
| dart pub global run coverage:test_with_coverage --branch-coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: mcp_server_dart/coverage/lcov.info | |
| flags: mcp_server_dart | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| informational: | |
| name: Contracts & analysis (informational) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| continue-on-error: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter SDK | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version: '3.44.2' | |
| cache: true | |
| - name: Install mcp_server_dart dependencies | |
| working-directory: mcp_server_dart | |
| run: flutter pub get | |
| - name: Analyze flutter_live_edit packages | |
| continue-on-error: true | |
| run: | | |
| set -uo pipefail | |
| for pkg in \ | |
| flutter_live_edit/flutter_live_edit_core \ | |
| flutter_live_edit/flutter_live_edit_agent \ | |
| flutter_live_edit/flutter_live_edit_toolkit \ | |
| flutter_live_edit/live_edit_tooling_ui_kit \ | |
| flutter_live_edit/live_edit_tooling_ui_kit_playground | |
| do | |
| if [[ ! -f "$pkg/pubspec.yaml" ]]; then | |
| echo "== skip $pkg (pubspec.yaml missing) ==" | |
| continue | |
| fi | |
| echo "== analyze $pkg ==" | |
| (cd "$pkg" && flutter pub get) || true | |
| dart analyze "$pkg" || true | |
| done | |
| - name: Live edit toolkit import boundary test | |
| continue-on-error: true | |
| if: ${{ hashFiles('flutter_live_edit/flutter_live_edit_toolkit/test/agent_import_boundary_test.dart') != '' }} | |
| working-directory: flutter_live_edit/flutter_live_edit_toolkit | |
| run: flutter test test/agent_import_boundary_test.dart | |
| - name: Check docs/help drift | |
| continue-on-error: true | |
| run: bash tool/contracts/check_docs_drift.sh | |
| - name: Check SDK parity | |
| continue-on-error: true | |
| run: bash tool/contracts/check_sdk_parity.sh | |
| - name: Check plugin surfaces | |
| continue-on-error: true | |
| run: bash tool/contracts/check_plugin_surfaces.sh | |
| - name: Check version sync | |
| run: bash tool/contracts/check_version_sync.sh | |
| - name: Check tool prefix | |
| continue-on-error: true | |
| run: bash tool/contracts/check_tool_prefix.sh | |
| - name: intentcall platform codegen drift (flutter_test_app) | |
| run: | | |
| cd mcp_server_dart && flutter pub get | |
| dart run bin/flutter_mcp_toolkit.dart codegen sync \ | |
| --platform web,android,ios,macos,linux,windows \ | |
| --project-dir ../flutter_test_app --check |