Skip to content

Verify a PR in CI

Run the full verification pipeline on every PR automatically.

  1. Add the workflow

    .github/workflows/maina-ci.yml
    name: Maina CI
    on: [pull_request]
    jobs:
    verify:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: oven-sh/setup-bun@v2
    - run: bun install
    - run: bun add -d @mainahq/cli
    - run: bunx maina verify
  2. Or use the cloud action

    .github/workflows/maina-cloud.yml
    name: Maina Cloud
    on: [pull_request]
    jobs:
    verify:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: mainahq/verify-action@v1
    with:
    token: ${{ secrets.MAINA_TOKEN }}
  3. Review results

    Findings appear as inline PR review comments. Cloud runs also get a verification permalink.