| name | validate |
| description | Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass. |
Run the full CI validation workflow locally. This replicates all checks from the Azure DevOps pipeline (eng/pipelines/ci.yml).
Steps
-
Build the emitter:
cd packages/typespec-rust
pnpm install
pnpm build
-
Lint TypeScript code:
pnpm eslint
-
Run TypeScript unit tests with coverage:
pnpm run test-ci
-
Regenerate test crates (takes several minutes):
pnpm run tspcompile
-
Run modtidy and verify a clean git state (mirroring CI):
cd test
pnpm -w modtidy $PWD
cd ..
git add -A .
git diff --staged --exit-code
-
Build generated Rust crates:
cd test
cargo build
-
Lint generated Rust code:
cargo clippy --workspace --all-features --all-targets --keep-going --no-deps
cd ..
-
Run integration tests (requires spector server):
pnpm spector --start
cd test/spector
cargo test --no-fail-fast
cd ../..
pnpm spector --stop
-
Spell check (from repo root):
cd ../..
cspell -c .vscode/cspell.json .
All steps must pass before submitting a pull request.