Skip to content

Commit 4c9c2a0

Browse files
committed
add cache to setup elasticsearch
1 parent 0383af2 commit 4c9c2a0

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/ci_workflow.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ jobs:
4646
shell: bash
4747
- name: Install dependencies
4848
run: uv sync
49-
- name: start elasticsearch container
50-
run: docker-compose up -d elasticsearch --wait &
49+
- uses: actions/cache@v4
50+
with:
51+
path: ~/elasticsearch
52+
key: ${{ runner.os }}-elasticsearch-9
53+
- uses: ankane/setup-elasticsearch@v1
5154
- name: Test with pytest
5255
run: uv run pytest --capture=no
5356

@@ -75,7 +78,11 @@ jobs:
7578
run: uv tool install meltano
7679
- name: Install Meltano plugins
7780
run: meltano install --clean
78-
- name: start elasticsearch container
79-
run: docker-compose up -d elasticsearch --wait &
81+
- uses: actions/cache@v4
82+
with:
83+
path: ~/elasticsearch
84+
key: ${{ runner.os }}-elasticsearch-9
85+
- uses: ankane/setup-elasticsearch@v1
8086
- name: smoke-test-tap
87+
8188
run: meltano run tap-smoke-test target-elasticsearch

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ services:
1515
memlock:
1616
soft: -1
1717
hard: -1
18-
healthcheck:
19-
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=10s || exit 1"]
20-
interval: 10s
21-
timeout: 10s
22-
retries: 12
23-
start_period: 30s
2418
kibana:
2519
depends_on:
2620
- elasticsearch

0 commit comments

Comments
 (0)