Skip to content

Commit

Permalink
Sanity check ⏱️ 003 : Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Dec 13, 2023
1 parent 23bef14 commit 7235251
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
# Specify Database Connection
TILED_TEST_POSTGRESQL_URI: postgresql+asyncpg://postgres:secret@localhost:5432

- uses: GuillaumeFalourd/wait-sleep-action@v1
with:
time: '1m' # for 1 minute

- name: SANITY CHECK - list contents of table nodes
run: docker exec postgres psql -U postgres -c "SELECT * FROM nodes limit 100;"

- name: Dump sql data into binary format when generator finishes
id: save
if: steps.tiled.conclusion == 'success'
Expand Down
3 changes: 1 addition & 2 deletions scripts/run_tiled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ set -e

tiled catalog init TILED_TEST_POSTGRESQL_URI
pwd
python scripts/generate_data.py TILED_TEST_POSTGRESQL_URI
docker exec postgres psql -U postgres -c "SELECT * FROM nodes limit 100;"
python scripts/generate_data.py TILED_TEST_POSTGRESQL_URI

0 comments on commit 7235251

Please sign in to comment.