Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Oct 16, 2019
1 parent 2feaa8b commit d618868
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: npm install, and test
run: |
npm install
docker-compose -f docker-compose-v7.yml up -d
docker-compose -f docker-compose-v7-es-only.yml up -d
sleep 10
npm test
env:
CI: true
9 changes: 9 additions & 0 deletions docker-compose-v7-es-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
version: '3.6'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
environment:
- discovery.type=single-node
container_name: elasticsearch
ports: ['9200:9200']
4 changes: 3 additions & 1 deletion test/acceptance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ var es
tap.beforeEach(async () => {
if (es) {
es = IER()
await es.waitCluster()
if (!await es.isRunning()) {
await es.waitCluster()
}
}
const result = await client.info()
esVersion = Number(result.body.version.number.split('.')[0])
Expand Down

0 comments on commit d618868

Please sign in to comment.