Skip to content

Commit 291028b

Browse files
authored
Merge pull request #41 from kgmcquate/main
Fix: Add get_test_suggestions return YAML for DBT Cloud usage
2 parents 8be205b + 237f559 commit 291028b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/dbt_test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Test DBT package
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [ "main", "develop" ]
67
paths:
7-
- macros/
8+
- macros/**
89
- dbt_project.yml
910
- .github/workflows/dbt_test.yml
1011

macros/test_aggregation/get_test_suggestions.sql

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
{% if return_object %}
9292
{{ return(dbt_config) }}
9393
{% else %}
94-
{{ print(testgen.to_yaml(dbt_config)) }}
94+
{% set the_yaml = testgen.to_yaml(dbt_config) %}
95+
{{ print(the_yaml) }}
96+
{{ return(the_yaml) }}
9597
{% endif %}
9698
{% endif %}
9799
{%- endmacro %}

0 commit comments

Comments
 (0)