Drop drift ci into a GitHub Actions workflow and every pull request gets checked automatically — coverage, lint, and prose drift, with the result posted straight to the PR.
drift ci binary as local/other-CI usage, so behavior is identical everywhere.name: Drift CI
on: [pull_request]
jobs:
drift:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for changed-file detection
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bunx drift ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions.pull-requests: write is required — that's what lets the action post and update the PR comment. fetch-depth: 0 is required for changed-package detection to work against the base branch.
--all is passed).## Drift CI Results
| Package | Exports | Coverage | Lint | Status |
|---------|---------|----------|------|--------|
| @scope/core | 45 | 92% | 0 issues | Pass |
| @scope/utils | 12 | 75% | 2 issues | Fail |
**Some checks failed.**
For thresholds, --all full-repo gates, non-GitHub CI providers, and the full flag reference, see CI Integration.