Fix problems in unit tests where DB access was attempted before DB was ready #13

Merged
bustikiller merged 6 commits from fix/postgres-health-timeout into main 2024-07-30 22:48:30 +00:00
Showing only changes of commit eade9f0318 - Show all commits

View File

@ -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