> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Continuous integration

> Run the kernel tests and bijection check on every change.

Run two steps on every pull request: your tests on the real kernel, and
`bijection check`.

```yaml .github/workflows/test.yml theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
name: Check and test

on: [pull_request, push]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
      - run: curl -fsSL https://bijection.com/install.sh | sh
      - run: npm ci
      - run: sudo apt-get install -y z3
      - run: bijection check
      - run: npx vitest run
```

## What `bijection check` gates

* **Label flow.** Every read, write, open, call and disclosure fits its
  function's `under`. A refusal is a remedy sentence, such as `ReadAbove` or
  `WriteBelow`.
* **The lock file.** The committed `bijection.lock` matches the tree. A
  change to exposure, labels, grave acts or guards fails as
  `AuthorityLockStale` until someone runs `bijection check --write-lock` and
  commits the reviewed diff.
* **Guards.** With `z3` or `cvc5` on `PATH`, it warns about `where:` guards
  that can never match and reports the acts the change newly forbids or
  allows, with an example each. Without a solver it prints
  `analysis unavailable`, so install one on the runner.

Review the `bijection.lock` diff with each change. See
[`bijection check`](https://docs.bijection.com/development/cli/check) and
[`bijection.lock`](https://docs.bijection.com/development/cli/lock).

A [typed client](https://docs.bijection.com/development/sdk-distribution.md) pins the `contract` line of
the same `bijection.lock`, so `bijection check` also catches a stale client
contract.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.