Skip to content

Commit bed1306

Browse files
committed
fix: don't dump hasura tables
1 parent 64950f5 commit bed1306

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/database.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
make docker-migrate
1818
make docker-build-db
1919
- name: Dump DB
20-
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash pokeapi > pokeapi.dump"
20+
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash -N 'hdb_*' pokeapi > pokeapi.dump"
2121
- name: Copy dump
2222
run: |
2323
docker compose cp db:/tmp/pokeapi.dump ./
@@ -33,3 +33,5 @@ jobs:
3333
run: |
3434
docker compose cp ./pokeapi.dump db:/tmp/
3535
docker compose exec -T -u postgres db sh -c "cd /tmp && pg_restore -h localhost -U ash -d pokeapi pokeapi.dump"
36+
- name: Test data
37+
run: curl -Ss http://localhost/api/v2/pokemon/1/ | grep -q 'bulbasaur'

0 commit comments

Comments
 (0)