Commit b5244d5 1 parent 29aacac commit b5244d5 Copy full SHA for b5244d5
File tree 1 file changed +23
-2
lines changed
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
strategy :
8
8
matrix :
9
+ search :
10
+ [
11
+ elasticsearch-7.6.0,
12
+ elasticsearch-8.2.0,
13
+ opensearch-2.6.0,
14
+ opensearch-2.13.0,
15
+ ]
9
16
include :
10
17
- elixir : 1.16.x
11
18
otp : 26.x
@@ -22,17 +29,31 @@ jobs:
22
29
steps :
23
30
- uses : actions/checkout@v4
24
31
32
+ - id : search
33
+ run : |
34
+ version=$(echo ${{ matrix.search }} | cut -d- -f2)
35
+ service=$(echo ${{ matrix.search }} | cut -d- -f1)
36
+ echo "::set-output name=version::$version"
37
+ echo "::set-output name=service::$service"
38
+
25
39
- name : Configure sysctl limits
26
40
run : |
27
41
sudo swapoff -a
28
42
sudo sysctl -w vm.swappiness=1
29
43
sudo sysctl -w fs.file-max=262144
30
44
sudo sysctl -w vm.max_map_count=262144
31
45
32
- - name : Runs Elasticsearch
46
+ - name : Run Elasticsearch
33
47
uses : elastic/elastic-github-actions/elasticsearch@master
34
48
with :
35
- stack-version : 7.6.0
49
+ stack-version : ${{ steps.search.outputs.version }}
50
+ if : ${{ steps.search.outputs.service == 'elasticsearch' }}
51
+
52
+ - name : Run OpenSearch
53
+ uses : ankane/setup-opensearch@v1
54
+ with :
55
+ opensearch-version : ${{ steps.search.outputs.version }}
56
+ if : ${{ steps.search.outputs.service == 'opensearch' }}
36
57
37
58
- uses : erlef/setup-beam@v1
38
59
id : setup-elixir
You can’t perform that action at this time.
0 commit comments