File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,28 @@ inputs:
32
32
runs :
33
33
using : " composite"
34
34
steps :
35
- - name : Run DBT
35
+ - name : Run DBT without Unit-tets
36
+ if : inputs.target != 'unit-test'
36
37
shell : bash
37
38
run : |
39
+ dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude path:seeds/unit_tests
38
40
dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:daily tag:unit_test
39
41
working-directory : ${{ inputs.working-directory }}
42
+ env :
43
+ snowflake-account : ${{ inputs.snowflake-account }}
44
+ snowflake-username : ${{ inputs.snowflake-username }}
45
+ snowflake-role : ${{ inputs.snowflake-role }}
46
+ snowflake-warehouse : ${{ inputs.snowflake-warehouse }}
47
+ snowflake-target-database : ${{ inputs.snowflake-target-database }}
48
+ snowflake-password : ${{ inputs.snowflake-password }}
49
+
50
+ - name : Run DBT with unit-tests
51
+ if : inputs.target == 'unit-test'
52
+ shell : bash
53
+ run : |
54
+ dbt seed --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }}
55
+ dbt run --profiles-dir=${{ inputs.profiles-directory }} --target=${{ inputs.target }} --exclude tag:daily
56
+ working-directory : ${{ inputs.working-directory }}
40
57
env :
41
58
snowflake-account : ${{ inputs.snowflake-account }}
42
59
snowflake-username : ${{ inputs.snowflake-username }}
You can’t perform that action at this time.
0 commit comments