Skip to content

Commit a5364a7

Browse files
committed
Merge branch 'develop' into trunk
2 parents 4a8ec0a + 2a7b388 commit a5364a7

22 files changed

+15874
-16377
lines changed

.github/workflows/build-and-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Set PHP version
1616
uses: shivammathur/setup-php@v2
1717
with:
1818
php-version: '8.2'
1919
coverage: none
2020

21-
- name: install node v18
22-
uses: actions/setup-node@v3
21+
- name: install node v20
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18
24+
node-version: 20
2525

2626
- name: Build
2727
run: |

.github/workflows/build-with-vendor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Set PHP version
1818
uses: shivammathur/setup-php@v2
1919
with:
2020
php-version: '8.2'
2121
coverage: none
2222

23-
- name: install node v18
24-
uses: actions/setup-node@v3
23+
- name: install node v20
24+
uses: actions/setup-node@v4
2525
with:
26-
node-version: 18
26+
node-version: 20
2727

2828
- name: Build
2929
run: |
@@ -37,7 +37,7 @@ jobs:
3737
run: npm run build:zip
3838

3939
- name: Make artifacts available
40-
uses: actions/upload-artifact@v3
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: elasticpress-labs
4343
retention-days: 2

.github/workflows/lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Linting
33
env:
44
COMPOSER_VERSION: "2"
55
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"
6-
NODE_VERSION: "18"
6+
NODE_VERSION: "20"
77
NODE_CACHE: "${{ github.workspace }}/node_modules_cache"
88

99
on:
@@ -22,20 +22,20 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Set standard 10up cache directories
2828
run: |
2929
sudo npm config set cache "${{ env.NODE_CACHE }}" --global
3030
- name: Prepare npm cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: ${{ env.NODE_CACHE }}
3434
key: npm-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
3535
restore-keys: |
3636
npm-${{ env.NODE_VERSION }}-
3737
- name: "install node v${{ env.NODE_VERSION }}"
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3939
with:
4040
node-version: ${{ env.NODE_VERSION }}
4141

@@ -51,13 +51,13 @@ jobs:
5151

5252
steps:
5353
- name: Checkout
54-
uses: actions/checkout@v3
54+
uses: actions/checkout@v4
5555

5656
- name: Set standard 10up cache directories
5757
run: |
5858
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
5959
- name: Prepare composer cache
60-
uses: actions/cache@v3
60+
uses: actions/cache@v4
6161
with:
6262
path: ${{ env.COMPOSER_CACHE }}
6363
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}

.github/workflows/test.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Test
33
env:
44
COMPOSER_VERSION: "2"
55
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"
6-
NODE_VERSION: "18"
7-
NODE_CACHE: "${{ github.workspace }}/node_modules_cache"
86

97
on:
108
schedule:
@@ -24,29 +22,17 @@ jobs:
2422

2523
steps:
2624
- name: Checkout
27-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2826

2927
- name: Start MySQL
3028
run: sudo systemctl start mysql.service
31-
32-
- name: Configure sysctl limits
33-
run: |
34-
sudo swapoff -a
35-
sudo sysctl -w vm.swappiness=1
36-
sudo sysctl -w fs.file-max=262144
37-
sudo sysctl -w vm.max_map_count=262144
38-
39-
- name: Setup Elasticsearch
40-
uses: getong/elasticsearch-action@v1.2
41-
with:
42-
elasticsearch version: '7.10.1'
43-
29+
4430
- name: Set standard 10up cache directories
4531
run: |
4632
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
4733
4834
- name: Prepare composer cache
49-
uses: actions/cache@v3
35+
uses: actions/cache@v4
5036
with:
5137
path: ${{ env.COMPOSER_CACHE }}
5238
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
@@ -62,6 +48,12 @@ jobs:
6248
- name: Install dependencies
6349
run: composer install
6450

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

.github/workflows/wordpress-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: WordPress version checker
18-
uses: skaut/wordpress-version-checker@v1.2.0
18+
uses: skaut/wordpress-version-checker@v2.2.2
1919
with:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}

.lintstagedrc.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
"*.css": [
33
"10up-toolkit lint-style"
44
],
5-
"*.js": [
6-
"10up-toolkit lint-js"
7-
],
8-
"*.jsx": [
5+
"*.{js,jsx}": [
96
"10up-toolkit lint-js"
107
],
118
"*.php": [
12-
"./vendor/bin/phpcs --extensions=php --warning-severity=8 -s"
9+
"./vendor/bin/phpcs --extensions=php --runtime-set testVersion 7.4- -s"
1310
]
1411
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.stylelintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "@10up/stylelint-config"
2+
"extends": [ "@10up/stylelint-config" ]
33
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ All notable changes to this project will be documented in this file, per [the Ke
1313
### Security
1414
-->
1515

16+
## [2.3.1] - 2024-12-11
17+
18+
### Added
19+
- ElasticPress as a plugin dependency. Props [@jeffpaul](https://github.com/jeffpaul) via [#104](https://github.com/10up/ElasticPress/pull/104).
20+
21+
### Changed
22+
- Bumped actions/upload-artifact from v3 to v4. Props [@iamdharmesh](https://github.com/iamdharmesh) via [#106](https://github.com/10up/ElasticPress/pull/106).
23+
- Update versions of GitHub Actions, composer, and node packages. Props [@felipeelia](https://github.com/felipeelia) via [#110](https://github.com/10up/ElasticPress/pull/110) and [#111](https://github.com/10up/ElasticPress/pull/111).
24+
25+
## Fixed
26+
- Textdomain in the Users feature. Props [@burhandodhy](https://github.com/burhandodhy) via [#114](https://github.com/10up/ElasticPress/pull/114).
27+
1628
## [2.3.0] - 2024-03-04
1729

1830
This version introduces the new *External Content* feature. Check [our blog post](https://www.elasticpress.io/blog/2024/03/pew-research-center-external-files-as-a-source-for-your-search) for more info.
@@ -115,6 +127,7 @@ This version introduces the new *External Content* feature. Check [our blog post
115127
- Initial plugin release.
116128

117129
[Unreleased]: https://github.com/10up/ElasticPressLabs/compare/trunk...develop
130+
[2.3.1]: https://github.com/10up/ElasticPressLabs/compare/2.3.0...2.3.1
118131
[2.3.0]: https://github.com/10up/ElasticPressLabs/compare/2.2.0...2.3.0
119132
[2.2.0]: https://github.com/10up/ElasticPressLabs/compare/2.1.1...2.2.0
120133
[2.1.1]: https://github.com/10up/ElasticPressLabs/compare/2.1.0...2.1.1

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ The `develop` branch is the development branch which means it contains the next
2929
## Release instructions
3030

3131
1. Branch: Starting from `develop`, cut a release branch named `release/X.Y.Z` for your changes.
32-
1. Version bump: Bump the version number in `elasticpresslabs.php`, `/languages/ElasticPressLabs.pot`, `package-lock.json`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpresslabs.php` update both the plugin "Version:" property and the plugin `ELASTICPRESS_LABS_VERSION` constant.
32+
1. Version bump: Bump the version number in `elasticpresslabs.php`, `/languages/elasticpress-labs.pot`, `package-lock.json`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpresslabs.php` update both the plugin "Version:" property and the plugin `ELASTICPRESS_LABS_VERSION` constant.
3333
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`, ensuring to link the [X.Y.Z] release reference in the footer of `CHANGELOG.md` (e.g., https://github.com/10up/ElasticPressLabs/compare/X.Y.Z-1...X.Y.Z).
3434
1. Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
3535
1. Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
3636
1. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.gitattributes`.
37-
1. POT file: Run `wp i18n make-pot . languages/ElasticPressLabs.pot` and commit the file. In case of errors, try to disable Xdebug (see [#3079](https://github.com/10up/ElasticPress/pull/3079#issuecomment-1291028290).)
37+
1. POT file: Run `wp i18n make-pot . languages/elasticpress-labs.pot` and commit the file. In case of errors, try to disable Xdebug (see [#3079](https://github.com/10up/ElasticPress/pull/3079#issuecomment-1291028290).)
3838
1. Release date: Double check the release date in both changelog files.
3939
1. Merge: Merge the release branch/PR into `develop`, then make a non-fast-forward merge from `develop` into `trunk` (`git checkout trunk && git merge --no-ff develop`). `trunk` contains the stable development version.
4040
1. Test: While still on the `trunk` branch, test for functionality locally.
@@ -49,12 +49,12 @@ The `develop` branch is the development branch which means it contains the next
4949
There may be cases where we have an urgent/important fix that ideally gets into a release quickly without any other changes (e.g., a "hotfix") so as to reduce (1) the amount or testing before being confident in the release and (2) to reduce the chance of unintended side effects from the extraneous non-urgent/important changes. In cases where code has previously been merged into `develop` but that ideally is not part of a hotfix, the normal release instructions above will not suffice as they would release all code merged to `develop` alongside the intended urgent/important "hotfix" change(s). In case of needing to release a "hotfix" the following are the recommended steps to take.
5050

5151
1. Branch: Starting from `trunk`, cut a hotfix release branch named `hotfix/X.Y.Z` for your hotfix change(s).
52-
1. Version bump: Bump the version number in `elasticpresslabs.php`, `/languages/ElasticPressLabs.pot`, `package-lock.json`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpresslabs.php` update both the plugin "Version:" property and the plugin `ELASTICPRESS_LABS_VERSION` constant.
52+
1. Version bump: Bump the version number in `elasticpresslabs.php`, `/languages/elasticpress-labs.pot`, `package-lock.json`, `package.json`, `readme.txt`, and any other relevant files if it does not already reflect the version being released. In `elasticpresslabs.php` update both the plugin "Version:" property and the plugin `ELASTICPRESS_LABS_VERSION` constant.
5353
1. Changelog: Add/update the changelog in `CHANGELOG.md` and `readme.txt`, ensuring to link the [X.Y.Z] release reference in the footer of `CHANGELOG.md` (e.g., https://github.com/10up/ElasticPressLabs/compare/X.Y.Z-1...X.Y.Z).
5454
1. Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
5555
1. Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
5656
1. New files: Check to be sure any new files/paths that are unnecessary in the production version are included in `.gitattributes`.
57-
1. POT file: Run `wp i18n make-pot . lang/elasticpress.pot` and commit the file.
57+
1. POT file: Run `wp i18n make-pot . lang/elasticpress-labs.pot` and commit the file.
5858
1. Release date: Double check the release date in both changelog files.
5959
1. Merge: Merge the release branch/PR into `trunk`. `trunk` contains the stable development version.
6060
1. Test: While still on the `trunk` branch, test for functionality locally.

CREDITS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Thank you to all the people who have already contributed to this repository via
2121
[Burhan Nasir (@burhandodhy)](https://github.com/burhandodhy),
2222
[Mohammed Razzaq (@MARQAS)](https://github.com/MARQAS),
2323
[Eric Caron (@ecaron)](https://github.com/ecaron),
24+
[Dharmesh Patel (@iamdharmesh)](https://github.com/iamdharmesh),
2425
and
2526
[Felipe Elia (@felipeelia)](https://github.com/felipeelia).
2627

0 commit comments

Comments
 (0)