-
Notifications
You must be signed in to change notification settings - Fork 3
104 lines (91 loc) · 2.58 KB
/
test-dbt-installation-main.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
# **what?**
# Launch all dbt installations tests from one workflow
# **why?**
# Simplify the process of launching and tracking of installations tests
# **when?**
# This workflow will run on a schedule every night and also can be
# manually invoked.
name: dbt Installation Tests
permissions:
contents: read # required for slack-post-notification workflow
packages: read # required to fetch tags for a container
on:
workflow_dispatch:
inputs:
test-installation-method:
description: "Choose installation method(s) to test"
required: true
type: choice
default: "all"
options:
- "all"
- "pip"
- "docker"
- "source"
# run this once per night to ensure no regressions
schedule:
- cron: "0 9,13,18 * * *" # 9:00, 13:00, 18:00 UTC
jobs:
dbt-installation-pip:
if: >-
github.event_name == 'schedule'
|| (inputs.test-installation-method == 'all'
|| inputs.test-installation-method == 'pip')
strategy:
fail-fast: false
matrix:
package:
[
"dbt-postgres",
"dbt-redshift",
"dbt-snowflake",
"dbt-bigquery",
"dbt-spark",
]
uses: ./.github/workflows/test-dbt-installation-pip.yml
with:
package_name: ${{ matrix.package }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_ADAPTER_ALERTS }}
dbt-installation-docker:
if: >-
github.event_name == 'schedule'
|| (inputs.test-installation-method == 'all'
|| inputs.test-installation-method == 'docker')
strategy:
fail-fast: false
matrix:
package:
[
"dbt-postgres",
"dbt-redshift",
"dbt-snowflake",
"dbt-bigquery",
"dbt-spark",
]
uses: ./.github/workflows/test-dbt-installation-docker.yml
with:
package_name: ${{ matrix.package }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_ADAPTER_ALERTS }}
dbt-installation-source:
if: >-
github.event_name == 'schedule'
|| (inputs.test-installation-method == 'all'
|| inputs.test-installation-method == 'source')
strategy:
fail-fast: false
matrix:
package:
[
"dbt-core",
"dbt-redshift",
"dbt-snowflake",
"dbt-bigquery",
"dbt-spark",
]
uses: ./.github/workflows/test-dbt-installation-source.yml
with:
package_name: ${{ matrix.package }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_ADAPTER_ALERTS }}