-
Notifications
You must be signed in to change notification settings - Fork 42
106 lines (86 loc) · 3.45 KB
/
dbt_v1.6.3_snowflake_build_full_clinical.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: dbt_v1.6.3_snowflake_build_full_claims
on:
workflow_dispatch:
pull_request:
branches:
- main
env:
DBT_TUVA_SNOWFLAKE_ACCOUNT: ${{ secrets.DBT_TUVA_SNOWFLAKE_ACCOUNT }}
DBT_TUVA_CI_DATABASE: ${{ secrets.DBT_TUVA_CI_DATABASE }}
DBT_SNOWFLAKE_CI_PASSWORD: ${{ secrets.DBT_SNOWFLAKE_CI_PASSWORD }}
DBT_SNOWFLAKE_CI_ROLE: ${{ secrets.DBT_SNOWFLAKE_CI_ROLE }}
DBT_SNOWFLAKE_CI_SCHEMA: ${{ secrets.DBT_SNOWFLAKE_CI_SCHEMA }}
DBT_SNOWFLAKE_CI_USER: ${{ secrets.DBT_SNOWFLAKE_CI_USER }}
DBT_SNOWFLAKE_CI_WAREHOUSE: ${{ secrets.DBT_SNOWFLAKE_CI_WAREHOUSE }}
jobs:
clinical_and_claims_enabled:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: dbt-deps
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt deps --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-debug
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt debug --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-build
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: 'dbt build --full-refresh --profiles-dir ./profiles/snowflake --vars {"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true,"claims_enabled":true}'
dbt_project_folder: "ci_testing"
- name: Get the result
if: ${{ always() }}
run: echo "${{ steps.dbt-build.outputs.result }}"
shell: bash
claims_enabled:
runs-on: ubuntu-latest
needs: clinical_and_claims_enabled
steps:
- uses: actions/checkout@v2
- name: dbt-deps
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt deps --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-debug
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt debug --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-build
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: 'dbt run --profiles-dir ./profiles/snowflake --vars {"input_database":"dev_ci_testing","input_schema":"input_layer","claims_enabled":true}'
dbt_project_folder: "ci_testing"
- name: Get the result
if: ${{ always() }}
run: echo "${{ steps.dbt-build.outputs.result }}"
shell: bash
clinical_enabled:
runs-on: ubuntu-latest
needs: claims_enabled
steps:
- uses: actions/checkout@v2
- name: dbt-deps
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt deps --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-debug
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: "dbt debug --profiles-dir ./profiles/snowflake"
dbt_project_folder: "ci_testing"
- name: dbt-build
uses: mwhitaker/dbt-action@v1.6.3
with:
dbt_command: 'dbt run --profiles-dir ./profiles/snowflake --vars {"input_database":"dev_ci_testing","input_schema":"input_layer","clinical_enabled":true}'
dbt_project_folder: "ci_testing"
- name: Get the result
if: ${{ always() }}
run: echo "${{ steps.dbt-build.outputs.result }}"
shell: bash