Skip to content

Commit

Permalink
Merge pull request #111 from 10up/chore/es-port
Browse files Browse the repository at this point in the history
Change the default es port for phpunit tests
  • Loading branch information
felipeelia authored Dec 9, 2024
2 parents c19d5be + 3a5d4ba commit de55abb
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,7 @@ jobs:

- name: Start MySQL
run: sudo systemctl start mysql.service

- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Setup Elasticsearch
uses: getong/[email protected]
with:
elasticsearch version: '8.12.2'


- name: Set standard 10up cache directories
run: |
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
Expand All @@ -60,6 +48,12 @@ jobs:
- name: Install dependencies
run: composer install

- name: Spin up Elasticsearch
run: git clone https://github.com/10up/ElasticPress.git elasticpress-plugin && cd elasticpress-plugin && npm run es:start

- name: Check ES response
run: curl --connect-timeout 5 --max-time 10 --retry 5 --retry-max-time 40 --retry-all-errors http://127.0.0.1:8890

- name: Setup WP Tests
run: |
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1
Expand Down

0 comments on commit de55abb

Please sign in to comment.