-
Notifications
You must be signed in to change notification settings - Fork 18
67 lines (58 loc) · 1.63 KB
/
meltano-run.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
name: Meltano Run
on:
pull_request: {}
push:
branches: [main]
jobs:
meltano-run:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tap: tap-csv
mapping: hash_email
output_db: tap_csv.db
target_table: customers
- tap: tap-smoke-test
mapping: whitelist
output_db: tap_smoke_test.db
target_table: animals
- tap: people
mapping: flatten
output_db: people.db
target_table: people
install_extractor: false
- tap: nested
mapping: comprehension
output_db: nested.db
target_table: users
install_extractor: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Meltano
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pipx install meltano --python python3.11
- name: Check Meltano version
run: |
meltano --version
- name: Install Mapper
run: |
meltano install mapper meltano-map-transformer
- name: Install Extractor
if: matrix.install_extractor != 'false'
run: |
meltano install extractor ${{ matrix.tap }}
- name: Install Loader
run: |
meltano install loader target-sqlite
- name: Run
run: |
meltano run ${{ matrix.tap }} ${{ matrix.mapping }} target-sqlite
- name: Check output
run: |
sqlite3 -markdown output/${{ matrix.output_db }} 'select * from ${{ matrix.target_table }} limit 20' >> $GITHUB_STEP_SUMMARY