fix(mcp): discover config from MCP roots protocol #169
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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| test: | |
| name: Test & Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate version matches tag | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| TAG_VERSION="${GITHUB_REF#refs/tags/v}" | |
| VSCODE_VERSION=$(jq -r .version extensions/vscode/package.json) | |
| ZED_VERSION=$(grep '^version = ' extensions/zed/extension.toml | cut -d'"' -f2) | |
| NPM_VERSION=$(jq -r .version npm/package.json) | |
| echo "Checking version consistency:" | |
| echo " Git tag: v$TAG_VERSION" | |
| echo " VSCode: $VSCODE_VERSION" | |
| echo " Zed: $ZED_VERSION" | |
| echo " npm: $NPM_VERSION" | |
| echo "" | |
| if [ "$TAG_VERSION" != "$VSCODE_VERSION" ] || [ "$TAG_VERSION" != "$ZED_VERSION" ] || [ "$TAG_VERSION" != "$NPM_VERSION" ]; then | |
| echo "❌ ERROR: Version mismatch detected!" | |
| echo "" | |
| echo "The git tag version does not match the extension versions." | |
| echo "This usually means you forgot to run the version script before creating the release." | |
| echo "" | |
| echo "To fix this:" | |
| echo " 1. Delete this release and tag" | |
| echo " 2. Run: make release v$TAG_VERSION" | |
| echo "" | |
| exit 1 | |
| fi | |
| echo "✓ Version check passed" | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Lint | |
| run: make lint | |
| - name: Test with coverage | |
| run: make test-coverage | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.out | |
| token: ${{ secrets.CODECOV_PAT }} | |
| fail_ci_if_error: true | |
| build: | |
| needs: test | |
| uses: bennypowers/go-release-workflows/.github/workflows/build-binaries.yml@main | |
| with: | |
| binary-name: asimonim | |
| # No release-tag = artifacts only + PR comment with build status |