Glade CI quickstart
Use Glade in CI when pull requests need local checks, affected tests, saved reports, and stable process exits.
Before you start
Choose the pinned advisory pilot while evaluating Glade. Use the enforcing gate only for paths your team has validated. Neither replaces Salesforce validation.
Fetch enough git history for origin/main. Create reports before writing artifacts. Use JSON, SARIF, and JUnit for machines; keep human output for local runs.
Steps
Write SARIF for code scanning:
mkdir -p reports
glade check --project . --format sarif --output reports/glade-check.sarifRun changed tests as JSON:
glade test changed --project . --since origin/main --json --no-progressWrite JUnit:
glade test --project . --junit reports/glade-junit.xml --no-progressExpected output
glade check writes SARIF to the report path. Changed tests write JSON to stdout. JUnit output lands in reports/glade-junit.xml. Non-zero exit codes mark failed gates.
Common wrong turn
Do not hide failed checks with broad || true shell glue. Let Glade fail the gate, then upload artifacts with the CI system's always-run upload step.