Agent Initial #444
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: Architecture Checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| boundaries: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Run boundary checks | |
| run: ./scripts/check-boundaries.sh | |
| tmux-integration: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install tmux + just | |
| run: brew install tmux just | |
| - name: Check tmux version | |
| id: tmux-version | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| version="$(tmux -V | awk '{print $2}')" | |
| major="${version%%.*}" | |
| minor_part="${version#*.}" | |
| minor_digits="${minor_part%%[^0-9]*}" | |
| if [[ -z "${minor_digits}" ]]; then | |
| minor_digits=0 | |
| fi | |
| if (( major > 3 )) || (( major == 3 && minor_digits >= 3 )); then | |
| echo "supported=true" >> "$GITHUB_OUTPUT" | |
| exit 0 | |
| fi | |
| echo "supported=false" >> "$GITHUB_OUTPUT" | |
| echo "tmux ${version} is below required 3.3; skipping tmux integration tests." | |
| - name: Run tmux integration tests | |
| if: steps.tmux-version.outputs.supported == 'true' | |
| run: just test-tmux-integration | |
| - name: Skip tmux integration tests (tmux < 3.3) | |
| if: steps.tmux-version.outputs.supported != 'true' | |
| run: echo "tmux integration tests skipped because tmux is below 3.3." |