Skip to content

Harden XcodeBazelMCP: validation, sim/device tools, and MCP PATH fixe… #52

Harden XcodeBazelMCP: validation, sim/device tools, and MCP PATH fixe…

Harden XcodeBazelMCP: validation, sim/device tools, and MCP PATH fixe… #52

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: write
jobs:
ci:
name: Lint, Typecheck, Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 20
- run: npm ci
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Test with coverage
run: npx vitest --run --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 20
- run: npm ci
- name: Build
run: npm run build
- name: Smoke (CLI boot, tool inventory, scaffold)
run: npm run smoke
tag:
name: Bump version & tag
needs: [ci, build]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump patch version and tag
run: |
npm version patch --no-git-tag-version
VERSION=$(node -p "require('./package.json').version")
git add package.json package-lock.json
git commit -m "chore: bump version to v${VERSION}"
git tag "v${VERSION}"
git push
git push --tags