Skip to content

Commit

Permalink
Remove PostgreSQL service from CI workflow
Browse files Browse the repository at this point in the history
The PostgreSQL service and related health checks have been removed from the Continuous Integration (CI) workflow. These elements were initially involved to ensure the database was ready before testing, but subsequent changes no longer necessitate this step.
  • Loading branch information
akobirabduganiev committed Jul 23, 2024
1 parent 2f3b4e5 commit f578baa
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,6 @@ jobs:
runs-on: ubuntu-latest
needs: setup-postgres

services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_DB: handihub
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
options: >
--health-cmd="pg_isready -U postgres -d handihub"
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -77,17 +62,6 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Wait for PostgreSQL to be ready
run: |
for i in {1..10}; do
if pg_isready -h localhost -p 5432 -U postgres; then
echo "PostgreSQL is ready"
break
fi
echo "Waiting for PostgreSQL..."
sleep 5
done
- name: Cache Gradle packages
uses: actions/cache@v2
with:
Expand Down

0 comments on commit f578baa

Please sign in to comment.