4848 --health-interval 10s
4949 --health-timeout 30s
5050 --health-retries 5
51+ elasticsearch6 : &ES6_SERVICE
52+ image : elasticsearch:6.8.23
53+ ports :
54+ - 9201:9200
55+ options : >-
56+ --health-cmd "curl -sf http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=30s"
57+ --health-interval 10s
58+ --health-timeout 30s
59+ --health-retries 5
5160 postgres : &POSTGRES_SERVICE
5261 image : postgres
5362 env :
6776 run : poetry run python3 -m invoke test-ci-addons --junit
6877 env :
6978 ELASTIC8_URI : http://localhost:9202
79+ ELASTIC6_URI : http://localhost:9201
7080 - name : Upload report
7181 if : (success() || failure()) # run this step even if previous step failed
7282 uses : ./.github/actions/gen-report
94104 checks : write
95105 services :
96106 elasticsearch8 : *ES8_SERVICE
107+ elasticsearch6 : *ES6_SERVICE
97108 postgres : *POSTGRES_SERVICE
98109 steps :
99110 - uses : actions/checkout@v6
@@ -104,6 +115,7 @@ jobs:
104115 run : poetry run python3 -m invoke test-ci-api1-and-js --junit
105116 env :
106117 ELASTIC8_URI : http://localhost:9202
118+ ELASTIC6_URI : http://localhost:9201
107119 - name : Upload report
108120 if : (success() || failure()) # run this step even if previous step failed
109121 uses : ./.github/actions/gen-report
@@ -115,6 +127,7 @@ jobs:
115127 checks : write
116128 services :
117129 elasticsearch8 : *ES8_SERVICE
130+ elasticsearch6 : *ES6_SERVICE
118131 postgres : *POSTGRES_SERVICE
119132 steps :
120133 - uses : actions/checkout@v6
@@ -123,6 +136,7 @@ jobs:
123136 run : poetry run python3 -m invoke test-ci-api2 --junit
124137 env :
125138 ELASTIC8_URI : http://localhost:9202
139+ ELASTIC6_URI : http://localhost:9201
126140 - name : Upload report
127141 if : (success() || failure()) # run this step even if previous step failed
128142 uses : ./.github/actions/gen-report
@@ -141,6 +155,7 @@ jobs:
141155 run : poetry run python3 -m invoke test-ci-api3-and-osf --junit
142156 env :
143157 ELASTIC8_URI : http://localhost:9202
158+ ELASTIC6_URI : http://localhost:9201
144159 - name : Upload report
145160 if : (success() || failure()) # run this step even if previous step failed
146161 uses : ./.github/actions/gen-report
0 commit comments