Use CI/CD Workflow for Code Validation
In this video, we will walk through
- creating a good pull request
- using a SlimCI job to validate your code
- merging code into your production git branch
- deploying the code to Redshift
Summary of this video:
- Commit any code that you might not have since the previous video.
- Click on
Open Pull Request
- Fill out the Pull Request Template to the best of your abilities.
- Click on
Create Pull Request
- Wait for the dbt Cloud CI/CD job to kick off and complete.
- Click into the specific run and explore the run steps.
- After getting a successful run, merge in the code and delete your branch.
- Go into dbt Cloud and kick off your Production job.
Helpful Tips
- Always let your CI/CD job run to completion. This is because dbt Cloud creates a temporary schema to build into for the run. Once the job is complete, dbt Cloud will then drop the temporary schema which will help maintain your clean database.