Skip to content

Commit d0bd433

Browse files
committed
Connect to search db hosts directly
1 parent a619adc commit d0bd433

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ jobs:
66
test:
77
name: Test
88
runs-on: ubuntu-latest
9+
container:
10+
image: node:18
911
strategy:
1012
matrix:
11-
searchdb-port: [9207, 9208, 9201]
13+
searchdb-host: [elastic7, elastic8, opensearch1]
1214
fail-fast: false
1315

1416
services:
@@ -23,21 +25,15 @@ jobs:
2325
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2426
elastic7:
2527
image: elasticsearch:7.17.9
26-
ports:
27-
- 9207:9200
2828
env:
2929
discovery.type: single-node
3030
elastic8:
3131
image: elasticsearch:8.13.4
32-
ports:
33-
- 9208:9200
3432
env:
3533
discovery.type: single-node
3634
xpack.security.enabled: false
3735
opensearch1:
3836
image: opensearchproject/opensearch:1.3.16
39-
ports:
40-
- 9201:9200
4137
env:
4238
discovery.type: single-node
4339
plugins.security.disabled: true
@@ -53,7 +49,7 @@ jobs:
5349

5450
- name: Setup environment
5551
run: |
56-
echo "INDEXER_ELASTIC_URL=http://localhost:${{ matrix.searchdb-port }}" >> "$GITHUB_ENV"
52+
echo "INDEXER_ELASTIC_URL=http://${{ matrix.searchdb-host }}:9200" >> "$GITHUB_ENV"
5753
5854
- name: Run tests
5955
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...

0 commit comments

Comments
 (0)