ci(macos): require self-contained release artifacts #40
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: Agent Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "feat/**" | |
| - "fix/**" | |
| - "docs/**" | |
| - "chore/**" | |
| - "exp/**" | |
| paths: | |
| - "AGENTS.md" | |
| - "CONTRIBUTING.md" | |
| - "docs/agent/**" | |
| - "tools/agent/**" | |
| - "tools/make/agent.mk" | |
| - ".github/**" | |
| - ".githooks/**" | |
| pull_request: | |
| paths: | |
| - "AGENTS.md" | |
| - "CONTRIBUTING.md" | |
| - "docs/agent/**" | |
| - "tools/agent/**" | |
| - "tools/make/agent.mk" | |
| - ".github/**" | |
| - ".githooks/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| agent-lint: | |
| 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: Resolve base ref | |
| run: | | |
| set -euo pipefail | |
| BASE_REF="" | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| git fetch origin "${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}" | |
| BASE_REF="origin/${{ github.base_ref }}" | |
| elif [ -n "${{ github.event.before || '' }}" ] && [ "${{ github.event.before || '' }}" != "0000000000000000000000000000000000000000" ]; then | |
| BASE_REF="${{ github.event.before }}" | |
| elif git rev-parse --verify HEAD^ >/dev/null 2>&1; then | |
| BASE_REF="HEAD^" | |
| fi | |
| echo "AGENT_BASE_REF=$BASE_REF" >> "$GITHUB_ENV" | |
| - name: Report agent surfaces | |
| run: uv run make agent-report AGENT_BASE_REF="$AGENT_BASE_REF" | |
| - name: Run agent lint | |
| run: uv run make agent-lint AGENT_BASE_REF="$AGENT_BASE_REF" |