Continuous Integration
Most Qlty users user Qlty Cloud, our fully automated Code Health Platform, to run static analysis in the cloud, making CI setup unnecessary. However, there are a few use cases where running Qlty CLI in your continuous integration (CI) pipeline is useful.
Auto-formatting your code nightly
Qlty Cloud does not currently support auto-formatting your code. However, you can run qlty fmt
in your CI pipeline to automatically format your code nightly.
Here is an example GitHub Actions workflow:
.github/workflows/fmt.yml
Publishing code coverage data to Qlty Cloud
Qlty CLI is used to publish code coverage data to Qlty Cloud. Please see our documentation for setting up code coverage for more information.