Use process.kill instead of process manager killPid #375
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: package:dart_mcp_server | |
| permissions: read-all | |
| on: | |
| # Run CI on all PRs (against any branch) and on pushes to the main branch. | |
| pull_request: | |
| paths: | |
| - ".github/workflows/dart_mcp_server.yaml" | |
| - "pkgs/dart_mcp_server/**" | |
| - "pkgs/dart_mcp/**" | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/dart_mcp_server.yaml" | |
| - "pkgs/dart_mcp_server/**" | |
| - "pkgs/dart_mcp/**" | |
| schedule: | |
| - cron: "0 0 * * 0" # weekly | |
| defaults: | |
| run: | |
| working-directory: pkgs/dart_mcp_server | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| flutterSdk: | |
| - beta | |
| - master | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Cache Pub hosted dependencies | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 | |
| with: | |
| path: "~/.pub-cache/hosted" | |
| key: "pub-cache-hosted;${{ matrix.flutterSdk }};${{ matrix.os }}" | |
| - name: Cache Pub sdk git dependency | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 | |
| with: | |
| path: "~/.pub-cache/git/sdk-b0838eac58308fc4e6654ca99eda75b30649c08f/" | |
| key: "pub-cache-git;${{ matrix.flutterSdk }};${{ matrix.os }}" | |
| # We need the flutter SDK in order to run the counter app for integration | |
| # testing. | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: ${{ matrix.flutterSdk }} | |
| cache: true | |
| cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" | |
| - name: fetch counter app deps | |
| working-directory: pkgs/dart_mcp_server/test_fixtures/counter_app | |
| run: flutter pub get | |
| - run: dart pub get | |
| - run: dart analyze --fatal-infos | |
| - run: dart format --output=none --set-exit-if-changed . | |
| if: ${{ matrix.flutterSdk == 'master' }} | |
| # If this fails, you need to run 'dart tool/update_readme.dart'. | |
| - run: dart tool/update_readme.dart | |
| - run: git diff --exit-code README.md || (echo 'README.md needs to be updated. Run "dart tool/update_readme.dart"' && false) | |
| - run: dart test |