File tree Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 20
20
contents : read
21
21
pull-requests : write
22
22
runs-on : ubuntu-latest
23
+ services :
24
+ elasticsearch-it :
25
+ image : docker.elastic.co/elasticsearch/elasticsearch:8
26
+ options : >-
27
+ --health-cmd "curl http://localhost:9200/_cluster/health"
28
+ --health-interval 10s
29
+ --health-timeout 5s
30
+ --health-retries 10
31
+ ports :
32
+ # <port on host>:<port on container>
33
+ - 9200:9200
23
34
steps :
24
35
- uses : actions/checkout@v3
25
36
- name : Set up JDK 11
28
39
java-version : ' 11'
29
40
distribution : ' temurin'
30
41
cache : maven
31
- - uses : ankane/setup-elasticsearch@v1
32
- with :
33
- elasticsearch-version : 8
34
- config : |
35
- http.port: 9200
36
42
- name : Clear existing docker image cache
37
43
shell : bash
38
44
run : docker image prune -af
Original file line number Diff line number Diff line change 57
57
checks : write
58
58
contents : read
59
59
runs-on : ubuntu-latest
60
+ services :
61
+ elasticsearch-it :
62
+ image : docker.elastic.co/elasticsearch/elasticsearch:8
63
+ options : >-
64
+ --health-cmd "curl http://localhost:9200/_cluster/health"
65
+ --health-interval 10s
66
+ --health-timeout 5s
67
+ --health-retries 10
68
+ ports :
69
+ # <port on host>:<port on container>
70
+ - 9200:9200
60
71
steps :
61
72
- uses : actions/checkout@v3
62
73
- name : Set up JDK 11
65
76
java-version : ' 11'
66
77
distribution : ' temurin'
67
78
cache : maven
68
- - uses : ankane/setup-elasticsearch@v1
69
- with :
70
- elasticsearch-version : 8
71
- config : |
72
- http.port: 9200
73
79
- name : Clear existing docker image cache
74
80
shell : bash
75
81
run : docker image prune -af
You can’t perform that action at this time.
0 commit comments