Skip to content

Commit

Permalink
Connect to search db hosts directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed May 14, 2024
1 parent a619adc commit d0bd433
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: node:18
strategy:
matrix:
searchdb-port: [9207, 9208, 9201]
searchdb-host: [elastic7, elastic8, opensearch1]
fail-fast: false

services:
Expand All @@ -23,21 +25,15 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
elastic7:
image: elasticsearch:7.17.9
ports:
- 9207:9200
env:
discovery.type: single-node
elastic8:
image: elasticsearch:8.13.4
ports:
- 9208:9200
env:
discovery.type: single-node
xpack.security.enabled: false
opensearch1:
image: opensearchproject/opensearch:1.3.16
ports:
- 9201:9200
env:
discovery.type: single-node
plugins.security.disabled: true
Expand All @@ -53,7 +49,7 @@ jobs:

- name: Setup environment
run: |
echo "INDEXER_ELASTIC_URL=http://localhost:${{ matrix.searchdb-port }}" >> "$GITHUB_ENV"
echo "INDEXER_ELASTIC_URL=http://${{ matrix.searchdb-host }}:9200" >> "$GITHUB_ENV"
- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
Expand Down

0 comments on commit d0bd433

Please sign in to comment.