-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add step to run dbt from pluto build GHA
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
source ./bash/config.sh | ||
set_error_traps | ||
|
||
echo "Setup dbt" | ||
dbt deps | ||
dbt debug | ||
|
||
echo "Build seed tables" | ||
dbt build --select config.materialized:seed --indirect-selection=cautious --full-refresh | ||
|
||
echo "Test source tables" | ||
dbt test --select "source:*" | ||
|
||
echo "Build staging tables" | ||
dbt build --select staging | ||
|
||
echo "Build intermediate tables" | ||
dbt build --select intermediate | ||
|
||
echo "Build intermediate QAQC tables" | ||
dbt run dbt run --select qaqc # need to use 'dbt run' because otherwise it fails if downstream test fails | ||
|
||
echo "Run DE tests" | ||
dbt test --select tag:de_check | ||
|
||
|