-
Notifications
You must be signed in to change notification settings - Fork 11
104 lines (101 loc) · 2.62 KB
/
ci.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
name: Continuous Integration Tests
on:
pull_request:
branches: [ main ]
env:
DBT_PROJECT_DIR: integration_tests
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
postgresql:
name: PostgreSQL CI
timeout-minutes: 30
env:
DBT_TARGET: postgres
DBT_SOURCE_DATABASE: postgres
DBT_SOURCE_SCHEMA: public
strategy:
matrix:
version: [12, 13, 14]
services:
postgres:
image: postgres:${{ matrix.version }}-alpine
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: wait for services to start up
run: sleep 10
- name: dbt version
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt --version
- name: dbt debug
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt debug
- name: dbt deps
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt deps
- name: dbt seed
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt seed --full-refresh
- name: dbt build
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt build --full-refresh
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
timeout-minutes: 30
clickhouse:
name: Clickhouse CI
timeout-minutes: 30
env:
DBT_TARGET: clickhouse
DBT_SOURCE_DATABASE: default
DBT_SOURCE_SCHEMA: default
strategy:
matrix:
version: [22.3, 22.7, 22.8]
services:
clickhouse:
image: clickhouse/clickhouse-server:${{ matrix.version }}
ports:
- 9000:9000
- 8123:8123
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: wait for services to start up
run: sleep 10
- name: dbt version
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt --version
- name: dbt debug
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt debug
- name: dbt deps
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt deps
- name: dbt seed
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt seed --full-refresh
- name: dbt build
uses: kzzzr/mybi-dbt-action@v4
with:
command: dbt build --full-refresh
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
timeout-minutes: 30