You can setup CI pipelines for the project if you want. This enables performing certain checks in PRs and master commits, which is useful to minimize errors and ensure certain quality levels are met.
The details here are specific to Azure Devops. If you need to set things up in a different Git/CI env, you'll have to adjust your way into it.
## CI VM Setup
### Requirements
These instructions assume that:
- You have a VM ready to be setup as the CI server.
- You can SSH into it.
- The VM has Docker and Docker Compose installed and ready to run.
- The VM has `psql` installed.
- The VM has the Azure CI agent installed.
- That you have cloned this repository in the home folder of the user you use in that VM.
- The DWH production instance has a CI dedicated user that can read from all sync schemas as well as `staging`, `intermediate` and `reporting`, and you have the credentials.
- If the infra was set correctly and you followed the previous steps, you should be ready to roll.
- You might want to activate pipeline executions in Devops if you had it off while preparing everything.
- Once that's done:
- Create a branch in this repository.
- Add some silly change to any dbt model.
- Open a PR in Devops from the branch.
- If everything is fine, you should see in Devops the pipeline getting triggered automatically and walking through all the steps described in `.azure-pipelines.master.yml`.
- Once you make a commit to `master` or merge PR to `master`, you should also see pipelines getting triggered automatically `.azure-pipelines.master.yml`.