-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (46 loc) · 1.33 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
name: Test dbt-risingwave
on: [push]
jobs:
test-with-jaffle_shop:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
services:
risingwave:
image: ghcr.io/risingwavelabs/risingwave:v1.5.2 # RW version should be manually updated until a released version is compatiable with this adapter.
ports:
- 4566:4566
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Clone jaffle_shop
run: git clone --depth 1 https://github.com/dbt-labs/jaffle_shop.git
- name: Setup dbt profile
run: |
mkdir -p $HOME/.dbt && cat >> $HOME/.dbt/profiles.yml <<EOF
jaffle_shop:
outputs:
dev:
type: risingwave
host: 127.0.0.1
user: root
pass: ""
dbname: dev
port: 4566
schema: public
target: dev
EOF
- name: Install dbt-risingwave globally
run: python3 -m pip install .
- name: dbt-seed
run: dbt seed
working-directory: jaffle_shop
- name: dbt-run
run: dbt run
working-directory: jaffle_shop
- name: dbt-doc
run: dbt docs generate
working-directory: jaffle_shop