# CI Setup
`feature-manifest` works well as a normal shell command in CI.
## GitHub Actions
```yaml
name: Feature Manifest
on:
push:
branches:
- main
pull_request:
jobs:
feature-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Install feature-manifest
run: cargo install feature-manifest --locked
- name: Check feature metadata
run: cargo fm
- name: Check generated README section
run: cargo fm md --check -i README.md
```
This uses `actions/checkout@v6` so new projects avoid the GitHub Actions Node
20 deprecation warning.
For GitHub annotations:
```text
cargo fm c -f github
```
Annotations include `Cargo.toml` line numbers when the related feature,
metadata entry, or group can be located.
For SARIF:
```text
cargo fm c -f sarif > feature-manifest.sarif
```
## GitLab CI
```yaml
feature_manifest:
image: rust:latest
script:
- cargo install feature-manifest --locked
- cargo fm
- cargo fm md --check -i README.md
```
## Generic Shell
```text
cargo install feature-manifest --locked
cargo fm
cargo fm md --check -i README.md
```
Use `cargo fm doctor --strict` when you want project wiring warnings to fail CI
alongside validation errors.