Skip to content

Commit 4eb839a

Browse files
committed
Ensure dbs are up before seeding
1 parent f4712fc commit 4eb839a

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

github-actions/seed-infrastructure-links/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ runs:
1111
curl https://raw.githubusercontent.com/HSLdevcom/jore4-ui/main/test-db-manager/src/dumps/infraLinks/infraLinks.sql \
1212
-o infraLinks.sql
1313
14+
- name: Verify that postgresql is up and running
15+
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
16+
with:
17+
command: "pg_isready -h localhost -p 6432"
18+
# it takes a while for the database to start
19+
retries: 50
20+
21+
- name: Verify that postgresql testdb-e2e1 is up and running
22+
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
23+
with:
24+
command: "pg_isready -h localhost -p 6532"
25+
# it takes a while for the database to start
26+
retries: 50
27+
28+
- name: Verify that postgresql testdb-e2e2 is up and running
29+
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
30+
with:
31+
command: "pg_isready -h localhost -p 6533"
32+
# it takes a while for the database to start
33+
retries: 50
34+
35+
- name: Verify that postgresql testdb-e2e3 is up and running
36+
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
37+
with:
38+
command: "pg_isready -h localhost -p 6534"
39+
# it takes a while for the database to start
40+
retries: 50
41+
1442
- name: Seed db1 with infrastructure links
1543
shell: bash
1644
run: |

0 commit comments

Comments
 (0)