fix(macos): shorten onboarding work area options #159
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 and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "feat/**" | |
| - "fix/**" | |
| - "docs/**" | |
| - "chore/**" | |
| - "exp/**" | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install project dependencies | |
| run: uv sync --frozen | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: | | |
| apps/site/package-lock.json | |
| apps/dashboard/package-lock.json | |
| - name: Install web dependencies | |
| run: make web-install | |
| - name: Run build and test contract | |
| run: | | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| git fetch origin "${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}" | |
| uv run make build-and-test AGENT_BASE_REF="origin/${{ github.base_ref }}" | |
| else | |
| BASE_REF="${{ github.event.before }}" | |
| if [ -z "$BASE_REF" ] || [ "$BASE_REF" = "0000000000000000000000000000000000000000" ]; then | |
| BASE_REF="HEAD^" | |
| fi | |
| uv run make build-and-test AGENT_BASE_REF="$BASE_REF" | |
| fi | |
| - name: Install browser runtime for dashboard e2e | |
| run: uv run python -m playwright install chromium | |
| - name: Run deterministic e2e matrix | |
| run: uv run make e2e | |
| - name: Lint commit range | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| git fetch origin "${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}" | |
| uv run python3 tools/agent/scripts/commit_msg_lint.py range --base-ref "origin/${{ github.base_ref }}" |