Skip to content

Commit

Permalink
Fix role DB issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakim-Kay committed Jun 14, 2024
1 parent 7252e41 commit 4778894
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

services:
Expand All @@ -20,7 +19,8 @@ jobs:
- 5432:5432
env:
POSTGRES_DB: acebook_springboot_development
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd "pg_isready"
--health-interval 10s
Expand All @@ -37,6 +37,11 @@ jobs:
distribution: 'adopt'
java-version: '17'

- name: Create runner role in PostgreSQL
run: |
sudo apt-get install -y postgresql-client
PGPASSWORD=postgres psql -h localhost -U postgres -d acebook_springboot_development -c "CREATE ROLE runner WITH LOGIN PASSWORD 'password';"
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand Down

0 comments on commit 4778894

Please sign in to comment.