File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 6
6
test :
7
7
name : Test
8
8
runs-on : ubuntu-latest
9
+ container :
10
+ image : node:18
9
11
strategy :
10
12
matrix :
11
- searchdb-port : [9207, 9208, 9201 ]
13
+ searchdb-host : [elastic7, elastic8, opensearch1 ]
12
14
fail-fast : false
13
15
14
16
services :
@@ -23,21 +25,15 @@ jobs:
23
25
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
24
26
elastic7 :
25
27
image : elasticsearch:7.17.9
26
- ports :
27
- - 9207:9200
28
28
env :
29
29
discovery.type : single-node
30
30
elastic8 :
31
31
image : elasticsearch:8.13.4
32
- ports :
33
- - 9208:9200
34
32
env :
35
33
discovery.type : single-node
36
34
xpack.security.enabled : false
37
35
opensearch1 :
38
36
image : opensearchproject/opensearch:1.3.16
39
- ports :
40
- - 9201:9200
41
37
env :
42
38
discovery.type : single-node
43
39
plugins.security.disabled : true
53
49
54
50
- name : Setup environment
55
51
run : |
56
- echo "INDEXER_ELASTIC_URL=http://localhost: ${{ matrix.searchdb-port }}" >> "$GITHUB_ENV"
52
+ echo "INDEXER_ELASTIC_URL=http://${{ matrix.searchdb-host }}:9200 " >> "$GITHUB_ENV"
57
53
58
54
- name : Run tests
59
55
run : go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
You can’t perform that action at this time.
0 commit comments