fix: install just for US-400 CI runners #58
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| NODE_VERSION: "22" | |
| PNPM_VERSION: "10.13.1" | |
| jobs: | |
| rust: | |
| name: Rust workspace | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Ensure Git LFS assets are present | |
| run: | | |
| git lfs install --local | |
| git lfs pull | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: ci-rust | |
| - name: Run Rust workspace tests | |
| run: cargo test --workspace --no-fail-fast | |
| - name: Run ignored sidecar integration tests | |
| run: cargo test --package agent-os-sidecar -- --ignored --test-threads=1 | |
| typescript: | |
| name: TypeScript workspace | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Ensure Git LFS assets are present | |
| run: | | |
| git lfs install --local | |
| git lfs pull | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: ci-rust | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| - name: Install just for dev-shell CLI tests | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y just | |
| - name: Cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| examples/*/node_modules | |
| registry/*/*/node_modules | |
| key: ${{ runner.os }}-node-modules-${{ env.NODE_VERSION }}-${{ hashFiles('pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node-modules-${{ env.NODE_VERSION }}- | |
| - name: Install workspace dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build registry types package first | |
| run: pnpm --filter @rivet-dev/agent-os-registry-types build | |
| - name: Build TypeScript workspace dependencies | |
| run: pnpm build | |
| - name: Build Rust sidecar binary for TS integration tests | |
| run: cargo build --package agent-os-sidecar | |
| - name: Run TypeScript workspace tests | |
| run: pnpm test | |
| env: | |
| AGENTOS_E2E_NETWORK: "1" |