Verify a PR in CI
Run the full verification pipeline on every PR automatically.
-
Add the workflow
.github/workflows/maina-ci.yml name: Maina CIon: [pull_request]jobs:verify:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- uses: oven-sh/setup-bun@v2- run: bun install- run: bun add -d @mainahq/cli- run: bunx maina verify -
Or use the cloud action
.github/workflows/maina-cloud.yml name: Maina Cloudon: [pull_request]jobs:verify:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- uses: mainahq/verify-action@v1with:token: ${{ secrets.MAINA_TOKEN }} -
Review results
Findings appear as inline PR review comments. Cloud runs also get a verification permalink.