Skip to content

Commit b846359

Browse files
committed
Add database export checks to GitHub jobs
1 parent 506230e commit b846359

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,18 @@ jobs:
168168
run: |
169169
timeout 5s ./target/debug/site 2>&1 | tee -a log || true
170170
grep -Fxq "Loading complete but no data identified; exiting." log
171+
172+
- name: Build Postgres to SQLite exporter
173+
run: cargo build --bin postgres-to-sqlite
174+
175+
- name: Export empty Postgres DB to SQLite
176+
run: ./target/debug/postgres-to-sqlite 'postgresql://postgres:postgres@localhost:5432/postgres' "$(mktemp)"
177+
178+
- name: Export empty Postgres DB to SQLite with date filter
179+
run: ./target/debug/postgres-to-sqlite --since-weeks-ago=1 'postgresql://postgres:postgres@localhost:5432/postgres' "$(mktemp)"
180+
181+
- name: Build SQLite to Postgres exporter
182+
run: cargo build --bin sqlite-to-postgres
183+
184+
- name: Export empty SQLite DB to Postgres
185+
run: ./target/debug/sqlite-to-postgres "$(mktemp)" 'postgresql://postgres:postgres@localhost:5432/postgres'

0 commit comments

Comments
 (0)