Skip to content

Commit

Permalink
Use EP's ES commands
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Dec 9, 2024
1 parent e86a0bd commit e051184
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ 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'
host port: 8890
container port: 8890

- name: Set standard 10up cache directories
run: |
Expand All @@ -62,6 +48,12 @@ jobs:
- name: Install dependencies
run: composer install

- name: Spin up Elasticsearch
run: cd vendor/elasticpress && npm ci --include=dev && 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 e051184

Please sign in to comment.