56
56
with :
57
57
ruby-version : ${{ matrix.ruby-version }}
58
58
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
59
+ - name : Setup gdiff
60
+ run : |
61
+ sudo ln -s /usr/bin/diff /usr/bin/gdiff || true
59
62
- name : Setup database
60
63
run : |
61
64
sudo service mysql start
91
94
postgres :
92
95
image : postgres:17
93
96
env :
94
- POSTGRES_USER : jruby
95
- POSTGRES_PASSWORD : jruby
96
- POSTGRES_HOST_AUTH_METHOD : trust
97
+ POSTGRES_PASSWORD : postgres
98
+ POSTGRES_DB : postgres
97
99
ports :
98
100
- 5432:5432
99
101
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
@@ -120,10 +122,14 @@ jobs:
120
122
with :
121
123
ruby-version : ${{ matrix.ruby-version }}
122
124
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
125
+ - name : Setup gdiff
126
+ run : |
127
+ sudo ln -s /usr/bin/diff /usr/bin/gdiff || true
123
128
- name : Setup database
124
129
run : |
125
- PGPASSWORD=jruby psql -c "create database activerecord_unittest;" -U jruby
126
- PGPASSWORD=jruby psql -c "create database activerecord_unittest2;" -U jruby
130
+ PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE USER jruby WITH SUPERUSER CREATEDB LOGIN PASSWORD 'jruby';"
131
+ PGPASSWORD=jruby psql -h localhost -d postgres -c "create database activerecord_unittest;" -U jruby
132
+ PGPASSWORD=jruby psql -h localhost -d postgres -c "create database activerecord_unittest2;" -U jruby
127
133
- name : Build
128
134
run : |
129
135
rake jar # compiles ext generates: lib/arjdbc/jdbc/adapter_java.jar
@@ -160,6 +166,9 @@ jobs:
160
166
with :
161
167
ruby-version : ${{ matrix.ruby-version }}
162
168
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
169
+ - name : Setup gdiff
170
+ run : |
171
+ sudo ln -s /usr/bin/diff /usr/bin/gdiff || true
163
172
- name : Build
164
173
run : |
165
174
echo "JAVA_OPTS=$JAVA_OPTS"
@@ -235,9 +244,8 @@ jobs:
235
244
postgres :
236
245
image : postgres:17
237
246
env :
238
- POSTGRES_USER : jruby
239
- POSTGRES_PASSWORD : jruby
240
- POSTGRES_HOST_AUTH_METHOD : trust
247
+ POSTGRES_PASSWORD : postgres
248
+ POSTGRES_DB : postgres
241
249
ports :
242
250
- 5432:5432
243
251
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
@@ -265,6 +273,9 @@ jobs:
265
273
with :
266
274
ruby-version : ${{ matrix.ruby-version }}
267
275
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
276
+ - name : Setup PostgreSQL user
277
+ run : |
278
+ PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE USER jruby WITH SUPERUSER CREATEDB LOGIN PASSWORD 'jruby';"
268
279
- name : Build
269
280
run : |
270
281
rake jar
0 commit comments