Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: Improve CI builds by improving caching and decomposing steps #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 22, 2022
Prev Previous commit
Next Next commit
Fix parallel connections with PostgreSQL tests
  • Loading branch information
kylecarbs committed Mar 22, 2022
commit 22360d35a6d808dad127dfdb826caa9a46676bcd
10 changes: 8 additions & 2 deletions .github/workflows/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,14 @@ jobs:
-e POSTGRES_DB=postgres \
-e PGDATA=/tmp \
-p 5432:5432 \
-d postgres:11
pg_isready -h 127.0.0.1
-d postgres:11 \
-c shared_buffers=1GB \
-c max_connections=1000
while ! pg_isready -h 127.0.0.1
do
echo "$(date) - waiting for database to start"
sleep 0.5
done

- name: Test with PostgreSQL Database
if: runner.os == 'Linux'
Expand Down