Skip to content

Commit afb72b0

Browse files
committed
add load test data step in ci
1 parent b44cca2 commit afb72b0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/code-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
# needed because the postgres container does not provide a healthcheck
3232
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
3333
steps:
34+
- name: load test data
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y postgresql-client
38+
PGPASSWORD="postgres" psql -U postgres -d postgres < tests/load-data.sql
3439
- uses: actions/checkout@v1
3540
- uses: actions-rs/toolchain@v1
3641
with:

.github/workflows/stable-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
# needed because the postgres container does not provide a healthcheck
4040
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4141
steps:
42+
- name: load test data
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y postgresql-client
46+
PGPASSWORD="postgres" psql -U postgres -d postgres < tests/load-data.sql
4247
- uses: actions/checkout@v1
4348
- uses: actions-rs/toolchain@v1
4449
with:

0 commit comments

Comments
 (0)