From 4778894d2df658ed4a97007ba711d67c150273aa Mon Sep 17 00:00:00 2001 From: Makini Date: Fri, 14 Jun 2024 02:10:42 +0100 Subject: [PATCH] Fix role DB issue --- .github/workflows/workflow.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 77be37b6..00920a33 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -10,7 +10,6 @@ on: jobs: build: - runs-on: ubuntu-latest services: @@ -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 @@ -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: