Repository navigation
Align context discovery and skill ownership with the shared contract. #116
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: ${{ matrix.runner }} | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install the Cargo Bake launcher | |
| run: cargo install socketry-cargo-bake --locked | |
| - name: Run workspace tests | |
| run: cargo test --workspace --locked | |
| - name: Exercise task registration | |
| run: cargo bake --locked --list | |
| - name: Exercise context tasks | |
| run: | | |
| cargo bake --locked agent:context:list | |
| cargo bake --locked agent:context:index | |
| quality: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v2 | |
| with: | |
| components: clippy, llvm-tools-preview, rustfmt | |
| cache-shared-key: coverage-cargo-install-v1 | |
| - name: Install Bake launcher | |
| run: cargo install socketry-cargo-bake --locked | |
| - name: Install coverage tool | |
| run: cargo install cargo-llvm-cov --locked | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --workspace --all-targets --locked -- -D warnings | |
| - name: Run tests and require complete source-region coverage | |
| run: cargo bake --locked test:coverage --all-targets true | |
| test-result: | |
| if: always() | |
| needs: [test, quality] | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Require successful tests and coverage | |
| env: | |
| JOB_RESULTS: ${{ toJSON(needs) }} | |
| run: | | |
| echo "$JOB_RESULTS" | jq -e 'all(.[]; .result == "success")' |