Skip to content

Commit

Permalink
fix: don't dump hasura tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Feb 14, 2025
1 parent 64950f5 commit bed1306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
make docker-migrate
make docker-build-db
- name: Dump DB
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash pokeapi > pokeapi.dump"
run: docker compose exec -T -u postgres db sh -c "cd /tmp && pg_dump -h localhost -Fc -U ash -N 'hdb_*' pokeapi > pokeapi.dump"
- name: Copy dump
run: |
docker compose cp db:/tmp/pokeapi.dump ./
Expand All @@ -33,3 +33,5 @@ jobs:
run: |
docker compose cp ./pokeapi.dump db:/tmp/
docker compose exec -T -u postgres db sh -c "cd /tmp && pg_restore -h localhost -U ash -d pokeapi pokeapi.dump"
- name: Test data
run: curl -Ss http://localhost/api/v2/pokemon/1/ | grep -q 'bulbasaur'

0 comments on commit bed1306

Please sign in to comment.