The missing action for Elasticsearch 🎉
- Simpler than containers
- Works on Linux, Mac, and Windows
- Supports different versions
Add it as a step to your workflow
- uses: ankane/setup-elasticsearch@v1
Specify a version (defaults to the latest)
- uses: ankane/setup-elasticsearch@v1
with:
elasticsearch-version: 9
Supports major versions (9
, 8
), minor versi
7870
ons (9.0
, 8.18
, etc), and full versions (9.0.0
, 8.18.0
, etc)
Test against multiple versions
strategy:
matrix:
elasticsearch-version: [9, 8]
steps:
- uses: ankane/setup-elasticsearch@v1
with:
elasticsearch-version: ${{ matrix.elasticsearch-version }}
Install plugins
- uses: ankane/setup-elasticsearch@v1
with:
plugins: |
analysis-kuromoji
analysis-smartcn
Set elasticsearch.yml
config
- uses: ankane/setup-elasticsearch@v1
with:
config: |
http.port: 9200
Add a step to your workflow before the setup-elasticsearch
one
- uses: actions/cache@v4
with:
path: ~/elasticsearch
key: ${{ runner.os }}-elasticsearch-${{ matrix.elasticsearch-version }}
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features