Skip to content

add a github workflow for mcp_examples/ #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/mcp_examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: mcp_examples
permissions: read-all

on:
# Run CI on all PRs (against any branch) and on pushes to the main branch.
pull_request:
paths:
- '.github/workflows/mcp_examples.yaml'
- 'mcp_examples/**'
push:
branches: [ main ]
paths:
- '.github/workflows/mcp_examples.yaml'
- 'mcp_examples/**'
schedule:
- cron: '0 0 * * 0' # weekly

defaults:
run:
working-directory: mcp_examples

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
sdk:
- stable
os:
- ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
with:
sdk: ${{ matrix.sdk }}

- run: dart pub get
- run: dart analyze --fatal-infos
- run: dart format --output=none --set-exit-if-changed .
if: ${{ matrix.sdk == 'stable' }}