Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e40d30d

Browse files
committed
try to fix load test data: load after checking
1 parent fb41991 commit e40d30d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎.github/workflows/code-coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,19 @@ 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
34+
- name: Install psql
3535
run: |
3636
sudo apt-get update
3737
sudo apt-get install -y postgresql-client
38-
PGPASSWORD="postgres" psql -U postgres -d postgres < /github/workspace/tests/load-data.sql
3938
- uses: actions/checkout@v1
4039
- uses: actions-rs/toolchain@v1
4140
with:
4241
toolchain: nightly
4342
override: true
43+
- name: load test data
44+
run: psql -U postgres -d postgres < /github/workspace/tests/load-data.sql
45+
env:
46+
PGPASSWORD: "postgres"
4447
- name: Run cargo-tarpaulin
4548
uses: actions-rs/tarpaulin@v0.1
4649
with:

‎.github/workflows/stable-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,20 @@ 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
42+
- name: Install psql
4343
run: |
4444
sudo apt-get update
4545
sudo apt-get install -y postgresql-client
46-
PGPASSWORD="postgres" psql -U postgres -d postgres < /github/workspace/tests/load-data.sql
4746
- uses: actions/checkout@v1
4847
- uses: actions-rs/toolchain@v1
4948
with:
5049
profile: minimal
5150
toolchain: ${{ matrix.rust }}
5251
override: true
52+
- name: load test data
53+
run: psql -U postgres -d postgres < /github/workspace/tests/load-data.sql
54+
env:
55+
PGPASSWORD: "postgres"
5356
- name: Run all tests
5457
uses: actions-rs/cargo@v1
5558
with:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /