Skip to content

Commit

Permalink
Test on multiple ElasticSearch and OpenSearch versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtaylor committed May 16, 2024
1 parent 29aacac commit b5244d5
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ jobs:

strategy:
matrix:
search:
[
elasticsearch-7.6.0,
elasticsearch-8.2.0,
opensearch-2.6.0,
opensearch-2.13.0,
]
include:
- elixir: 1.16.x
otp: 26.x
Expand All @@ -22,17 +29,31 @@ jobs:
steps:
- uses: actions/checkout@v4

- id: search
run: |
version=$(echo ${{ matrix.search }} | cut -d- -f2)
service=$(echo ${{ matrix.search }} | cut -d- -f1)
echo "::set-output name=version::$version"
echo "::set-output name=service::$service"
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
- name: Run Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.6.0
stack-version: ${{ steps.search.outputs.version }}
if: ${{ steps.search.outputs.service == 'elasticsearch' }}

- name: Run OpenSearch
uses: ankane/setup-opensearch@v1
with:
opensearch-version: ${{ steps.search.outputs.version }}
if: ${{ steps.search.outputs.service == 'opensearch' }}

- uses: erlef/setup-beam@v1
id: setup-elixir
Expand Down

0 comments on commit b5244d5

Please sign in to comment.