Skip to content

Commit de55abb

Browse files
authored
Merge pull request #111 from 10up/chore/es-port
Change the default es port for phpunit tests
2 parents c19d5be + 3a5d4ba commit de55abb

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,7 @@ jobs:
2626

2727
- name: Start MySQL
2828
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+
4230
- name: Set standard 10up cache directories
4331
run: |
4432
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
@@ -60,6 +48,12 @@ jobs:
6048
- name: Install dependencies
6149
run: composer install
6250

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+
6357
- name: Setup WP Tests
6458
run: |
6559
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1

0 commit comments

Comments
 (0)