File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 26
26
27
27
- name : Start MySQL
28
28
run : sudo systemctl start mysql.service
29
-
30
- - name : Configure sysctl limits
31
- run : |
32
- sudo swapoff -a
33
- sudo sysctl -w vm.swappiness=1
34
- sudo sysctl -w fs.file-max=262144
35
- sudo sysctl -w vm.max_map_count=262144
36
-
37
- - name : Setup Elasticsearch
38
- uses : getong/elasticsearch-action@v1.2
39
- with :
40
- elasticsearch version : ' 8.12.2'
41
-
29
+
42
30
- name : Set standard 10up cache directories
43
31
run : |
44
32
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
60
48
- name : Install dependencies
61
49
run : composer install
62
50
51
+ - name : Spin up Elasticsearch
52
+ run : git clone https://github.com/10up/ElasticPress.git elasticpress-plugin && cd elasticpress-plugin && npm run es:start
53
+
54
+ - name : Check ES response
55
+ run : curl --connect-timeout 5 --max-time 10 --retry 5 --retry-max-time 40 --retry-all-errors http://127.0.0.1:8890
56
+
63
57
- name : Setup WP Tests
64
58
run : |
65
59
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1
You can’t perform that action at this time.
0 commit comments