Explicitly wait for Postgres to be ready to accept connections
Some checks failed
Run unit tests / unit_tests (pull_request) Has been cancelled
Some checks failed
Run unit tests / unit_tests (pull_request) Has been cancelled
This commit is contained in:
parent
4ff719fa1f
commit
eade9f0318
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -26,6 +26,13 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: ruby/setup-ruby@v1
|
||||
- run: bundle install
|
||||
- name: Wait until Postgres is ready to accept connections
|
||||
run: |
|
||||
until pg_isready -h postgres -U postgres -d postgres
|
||||
do
|
||||
sleep 1
|
||||
echo "Trying again"
|
||||
done
|
||||
- run: |
|
||||
bundle exec rake db:create db:schema:load
|
||||
bundle exec rspec
|
||||
|
Loading…
x
Reference in New Issue
Block a user