Skip to content

Commit 2daa18f

Browse files
committed
Update rubyonrails.yml to add elasticsearch service
Signed-off-by: Robert Smith <[email protected]>
1 parent 65d7296 commit 2daa18f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/rubyonrails.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,21 @@ jobs:
2222
POSTGRES_DB: rails_test
2323
POSTGRES_USER: rails
2424
POSTGRES_PASSWORD: password
25+
elasticsearch:
26+
image: elasticsearch:7.17.23
27+
ports:
28+
- "9202:9200"
29+
env:
30+
"node.name": elasticsearch
31+
"cluster.name": better-together-es
32+
"discovery.seed_hosts": elasticsearch
33+
"discovery.type": single-node
34+
"bootstrap.memory_lock": true
35+
"ES_JAVA_OPTS": "-Xms512m -Xmx512m"
2536
env:
2637
RAILS_ENV: test
2738
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
39+
ES_HOST: "http://localhost"
2840
steps:
2941
- name: Checkout code
3042
uses: actions/checkout@v3

0 commit comments

Comments
 (0)