> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revolte.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Pre-build Flow

> Configure environment-specific pre‑build automation and quality gates.

<div style={{ display: "flex", justifyContent: "center" }}>
  <img src="https://mintcdn.com/poddle-54594c3d/q0Rk3K5lGk3vHIWm/image-v2/yaml/prebuild.png?fit=max&auto=format&n=q0Rk3K5lGk3vHIWm&q=85&s=446b131764a9b05d789643902a518ddb" width="200" data-path="image-v2/yaml/prebuild.png" />
</div>

The **Pre‑build Workflow** allows you to define checks and automation that run before your service is built and deployed to a specific environment.

## Configuration

In your `revolte.yaml`, you can enable or disable pre‑build features per environment:

```yaml revolte.yaml theme={"dark"}
revolte:
  version: "1.0"
  project: Sideline HQ
  appName: sideline-web-admin

  env:
    production:
      branch: main
      codeReview: true
      codeQuality: true
      testSuite: true
      automationTestSuite: true
```

## Key modules

* **Code Review**: Activates AI‑driven PR summarization and fix suggestions.
* **Code Quality**: Enforces linting and style rules.
* **Test Suite**: Executes your unit and integration tests.
* **Automation Test Suite**: Runs end‑to‑end automation tests.

## Related

* [Agent Workflow](/yaml/repo-preferences/agent-workflow)
* [Pipeline Overview](/yaml/repo-preferences/pipeline/overview)

## Next steps

* [Configure Deployment Workflow](/yaml/environment-settings/services)
* [Manage Variables & Secrets](/yaml/environment-settings/resource-specifications/variables)
* [Learn about Syncing Changes](/yaml/syncing)
