-
Notifications
You must be signed in to change notification settings - Fork 25
63 lines (48 loc) · 1.64 KB
/
getting_started.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
name: Getting Started
on:
push:
paths:
- "**.py"
- "**.yml"
- "**.yaml"
workflow_dispatch:
jobs:
getting_started:
strategy:
fail-fast: false
matrix:
include:
- env-prefix: PY38_BC
python-version: 3.8
- env-prefix: PY311_BC
python-version: 3.11
runs-on: ubuntu-latest
timeout-minutes: 20
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: snowddl
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ENV_PREFIX: ${{ matrix.env-prefix }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: pip install -e .
- name: "Cleanup"
run: snowddl -c sample01_01 --apply-unsafe destroy
- name: "Apply sample01_01, run 1"
run: snowddl -c sample01_01 --apply-unsafe apply
- name: "Apply sample01_01, run 2"
run: snowddl -c sample01_01 --apply-unsafe apply
- name: "Apply sample01_02, run 1"
run: snowddl -c sample01_02 --apply-unsafe apply
- name: "Apply sample01_02, run 2"
run: snowddl -c sample01_02 --apply-unsafe apply
- name: "Apply sample02_01"
run: snowddl -c sample02_01 --apply-unsafe --apply-masking-policy --apply-row-access-policy apply
- name: "Apply singledb"
run: snowddl-singledb -c sample02_01 --config-db=TEST_DB --target-db=ANOTHER_DB --apply-unsafe --apply-masking-policy --apply-row-access-policy apply