base > docs > workflows > CI Workflow
The CI (Continuous Integration) workflow is defined in .github/workflows/ci.yml.
This workflow is triggered by the following events:
pushto themainbranchpull_requestto themainbranch
This job, named "Lint Code Base", runs on the latest version of Ubuntu. It performs the following steps:
- Checkout Code: Checks out the repository's code.
- Setup Node.js: Sets up Node.js version 20.
- Check Formatting with Prettier: Runs
npx prettier --check .to verify that all files in the repository are formatted correctly according to the Prettier configuration.
The purpose of this workflow is to ensure that all code pushed to the main branch or included in a pull request to main adheres to the project's coding style, as defined by Prettier. This helps maintain code consistency and quality.