Skip to content

Commit

Permalink
Ensure Postgres readiness before running tests
Browse files Browse the repository at this point in the history
Added a step to ensure Postgres is ready before executing tests
by using `pg_isready`. This prevents potential test failures due
to database unavailability, enhancing the reliability of the CI pipeline.
  • Loading branch information
eliasjpr committed Aug 13, 2024
1 parent 2c2262b commit fe11a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: crystal tool format --check
- name: Run tests
env:
DATABASE_URL: postgres://example:example@localhost:5432/example
DATABASE_URL: postgres://example:example@postgres:5432/example
run: crystal spec

docs:
Expand Down

0 comments on commit fe11a53

Please sign in to comment.