File tree Expand file tree Collapse file tree
github-actions/setup-e2e-environment Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 uses : actions/checkout@v3
1616
1717 - name : Start e2e env
18+ env :
19+ INFRASTRUCTURE_LINK_DUMP_PATH : infraLinks.sql
1820 uses : ./github-actions/setup-e2e-environment
1921
2022 - name : Run e2e tests from github action
Original file line number Diff line number Diff line change @@ -289,3 +289,34 @@ runs:
289289 - name : Verify that all containers are healthy
290290 run : ' [ -z "$(docker ps -q --filter health=unhealthy)" ]'
291291 shell : bash
292+
293+ - name : Set up PostgreSQL client
294+ shell : bash
295+ run : |
296+ sudo apt-get -yqq install postgresql-client
297+
298+ - name : Fetch infrastructure link dump
299+ shell : bash
300+ run : |
301+ curl https://raw.githubusercontent.com/HSLdevcom/jore4-ui/main/test-db-manager/src/dumps/infraLinks/infraLinks.sql \
302+ -o ${{ env.INFRASTRUCTURE_LINK_DUMP_PATH }}
303+
304+ - name : Seed db1 with infrastructure links
305+ shell : bash
306+ run : |
307+ psql postgresql://dbadmin:adminpassword@localhost:6532/jore4e2e < ${{ env.INFRASTRUCTURE_LINK_DUMP_PATH }}
308+
309+ - name : Seed db2 with infrastructure links
310+ shell : bash
311+ run : |
312+ psql postgresql://dbadmin:adminpassword@localhost:6533/jore4e2e < ${{ env.INFRASTRUCTURE_LINK_DUMP_PATH }}
313+
314+ - name : Seed db3 with infrastructure links
315+ shell : bash
316+ run : |
317+ psql postgresql://dbadmin:adminpassword@localhost:6534/jore4e2e < ${{ env.INFRASTRUCTURE_LINK_DUMP_PATH }}
318+
319+ - name : Seed db4 with infrastructure links
320+ shell : bash
321+ run : |
322+ psql postgresql://dbadmin:adminpassword@localhost:6432/jore4e2e < ${{ env.INFRASTRUCTURE_LINK_DUMP_PATH }}
You can’t perform that action at this time.
0 commit comments