Skip to content

Commit

Permalink
as service
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjakob committed Mar 28, 2024
1 parent d787aff commit 699ebd7
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
build:
name: "make integration_tests"
defaults:
run:
working-directory: ${{ inputs.working-directory }}
Expand All @@ -25,7 +26,16 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
name: "make integration_tests"
services:
elasticsearch:
image: elasticsearch:8.12.1
env:
discovery.type: single-node
xpack.security.enabled: false
xpack.security.http.ssl.enabled: false
xpack.license.self_generated.type: trial
ports:
- 9200:9200
steps:
- uses: actions/checkout@v4

Expand All @@ -41,24 +51,17 @@ jobs:
shell: bash
run: poetry install --with=test_integration,test

- name: Start containers
shell: bash
# run: docker-compose -f "$DOCKER_COMPOSE_YAML" up -d --build elasticsearch
run: |
docker run --name es -d -p 9200:9200 \
-e "discovery.type=single-node" \
-e "xpack.security.enabled=false" \
-e "xpack.security.http.ssl.enabled=false" \
-e "xpack.license.self_generated.type=trial" \
elasticsearch:8.12.1
# - name: Start containers
# shell: bash
# # run: docker-compose -f "$DOCKER_COMPOSE_YAML" up -d --build elasticsearch
# run: |
# docker run --name es -d -p 9200:9200 \

- name: Run integration tests
shell: bash
env:
ES_URL: "http://127.0.0.1:9200"
run: make integration_test

- name: Stop containers
if: always()
shell: bash
run: docker stop es
# - name: Stop containers
# if: always()
# shell: bash
# run: docker stop es

0 comments on commit 699ebd7

Please sign in to comment.