CI Integration

The Action runs drift — same check as local. Findings fail. Coverage below --min / coverage.min fails. Ghosts and gap growth fail when drift.docs.json is present.

name: Drift
on: [pull_request]

jobs:
  drift:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: actions/checkout@v4
      - uses: ryanwaits/drift/action@v1
        with:
          min-coverage: 80

Set min-coverage to your current score so the floor cannot drop. Raise it when you pay down the backlog.

Without the Action

drift --min 80 --annotations

Inputs

See Action. check-all: true for monorepos (drift --all).

Exit codes

CodeMeaning
0Pass
1Findings, coverage below min, or key-coverage fail
2Usage or internal error