-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from 10up/chore/es-port
Change the default es port for phpunit tests
- Loading branch information
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" | ||
|
@@ -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 | ||
|