mcp: render protobuf oneof as a discriminated object, drop openai-compat #99
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bazel | |
| uses: useblacksmith/setup-bazel@v1 | |
| with: | |
| bazelisk-cache: true | |
| disk-cache: ${{ github.ref }} | |
| repository-cache: true | |
| - name: Build and test | |
| run: bazelisk test //... --test_summary=detailed | |
| - name: Conformance and integration tests | |
| if: >- | |
| github.event_name == 'push' || | |
| (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) | |
| env: | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| run: | | |
| if [ -z "$OPENAI_API_KEY" ]; then | |
| echo "::warning::API key secrets not available, skipping conformance tests" | |
| exit 0 | |
| fi | |
| bazelisk test //... \ | |
| --test_env=GOOGLE_API_KEY --test_env=OPENAI_API_KEY --test_env=ANTHROPIC_API_KEY \ | |
| --test_output=all --test_summary=detailed |