Skip to content

Commit

Permalink
Update PostgreSQL service configuration in ci.yml workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriskzie committed Apr 25, 2024
1 parent 16570df commit 67c3533
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,22 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: java-app
path: build/libs/*.jar

- name: connect to postgresql database
uses: docker://postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
with:
args: -p 5432:5432/tcp
path: build/libs/*.jar

test:
name: Test
runs-on: ubuntu-latest
needs: build
services:
postgres_db:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: spring_jwt
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 67c3533

Please sign in to comment.