|
91 | 91 | postgres: |
92 | 92 | image: postgres:17 |
93 | 93 | env: |
94 | | - POSTGRES_USER: jruby |
95 | | - POSTGRES_PASSWORD: jruby |
96 | | - POSTGRES_HOST_AUTH_METHOD: trust |
| 94 | + POSTGRES_PASSWORD: postgres |
| 95 | + POSTGRES_DB: postgres |
97 | 96 | ports: |
98 | 97 | - 5432:5432 |
99 | 98 | options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |
@@ -122,8 +121,9 @@ jobs: |
122 | 121 | bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
123 | 122 | - name: Setup database |
124 | 123 | run: | |
125 | | - PGPASSWORD=jruby psql -c "create database activerecord_unittest;" -U jruby |
126 | | - PGPASSWORD=jruby psql -c "create database activerecord_unittest2;" -U jruby |
| 124 | + PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE USER jruby WITH SUPERUSER CREATEDB LOGIN PASSWORD 'jruby';" |
| 125 | + PGPASSWORD=jruby psql -h localhost -d postgres -c "create database activerecord_unittest;" -U jruby |
| 126 | + PGPASSWORD=jruby psql -h localhost -d postgres -c "create database activerecord_unittest2;" -U jruby |
127 | 127 | - name: Build |
128 | 128 | run: | |
129 | 129 | rake jar # compiles ext generates: lib/arjdbc/jdbc/adapter_java.jar |
@@ -235,9 +235,8 @@ jobs: |
235 | 235 | postgres: |
236 | 236 | image: postgres:17 |
237 | 237 | env: |
238 | | - POSTGRES_USER: jruby |
239 | | - POSTGRES_PASSWORD: jruby |
240 | | - POSTGRES_HOST_AUTH_METHOD: trust |
| 238 | + POSTGRES_PASSWORD: postgres |
| 239 | + POSTGRES_DB: postgres |
241 | 240 | ports: |
242 | 241 | - 5432:5432 |
243 | 242 | options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |
@@ -265,6 +264,9 @@ jobs: |
265 | 264 | with: |
266 | 265 | ruby-version: ${{ matrix.ruby-version }} |
267 | 266 | bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 267 | + - name: Setup PostgreSQL user |
| 268 | + run: | |
| 269 | + PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE USER jruby WITH SUPERUSER CREATEDB LOGIN PASSWORD 'jruby';" |
268 | 270 | - name: Build |
269 | 271 | run: | |
270 | 272 | rake jar |
|
0 commit comments