-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
5,957 additions
and
2,149 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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: 'Close stale issues' | ||
|
||
# **What it does**: Closes issues where the original author doesn't respond to a request for information. | ||
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded. | ||
|
||
on: | ||
schedule: | ||
# Schedule for every day at 1:30am UTC | ||
- cron: '30 1 * * *' | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-stale: 3 | ||
days-before-close: 3 | ||
stale-issue-message: > | ||
It has been 3 days since more information was requested from you in this issue and we have not heard back. This issue is now marked as stale and will be closed in 3 days, but if you have more information to add then please comment and the issue will stay open. | ||
close-issue-message: > | ||
This issue has been automatically closed because there has been no response | ||
to our request for more information in the past 3 days. With only the | ||
information that is currently available, we are unable to take further action on this ticket. | ||
Please reach out if you have found or find the answer we need so that we | ||
can investigate further. When the information is ready, you can re-open this ticket to share it with us. | ||
stale-issue-label: 'stale' | ||
close-issue-reason: 'not_planned' | ||
any-of-labels: 'reporter feedback' | ||
remove-stale-when-updated: true | ||
|
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Unit Test | ||
|
||
env: | ||
COMPOSER_VERSION: "2" | ||
|
@@ -17,9 +17,16 @@ on: | |
- '[0-9].[0-9x]*' # Version branches: 4.x.x, 4.1.x, 5.x | ||
|
||
jobs: | ||
phpunit_single_site: | ||
name: PHP Unit (Single Site) | ||
phpunit: | ||
name: ${{ matrix.type.name }} - ES ${{ matrix.esVersion }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
esVersion: ['7.10.1', '8.12.2'] | ||
type: | ||
- {name: 'Single Site', command: 'test-single-site'} | ||
- {name: 'Multisite', command: 'test'} | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -28,71 +35,11 @@ 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: '7.10.1' | ||
|
||
- name: Set standard 10up cache directories | ||
run: | | ||
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}" | ||
- name: Prepare composer cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE }} | ||
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
composer-${{ env.COMPOSER_VERSION }}- | ||
- name: Set PHP version | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
extensions: :php-psr | ||
coverage: none | ||
run: cd bin/es-docker/ && docker-compose build --build-arg ES_VERSION=${{ matrix.esVersion }} && docker-compose up -d | ||
|
||
- name: Install dependencies | ||
run: composer install --ignore-platform-reqs | ||
|
||
- name: Setup WP Tests | ||
run: | | ||
bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 | ||
sleep 10 | ||
- name: PHPUnit | ||
run: | | ||
composer run-script test-single-site | ||
phpunit_multisite: | ||
name: PHP Unit (Multisite) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- 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: '7.10.1' | ||
- 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: Set standard 10up cache directories | ||
run: | | ||
|
@@ -114,7 +61,7 @@ jobs: | |
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
run: composer install --ignore-platform-reqs | ||
|
||
- name: Setup WP Tests | ||
run: | | ||
|
@@ -123,4 +70,4 @@ jobs: | |
- name: PHPUnit | ||
run: | | ||
composer run-script test | ||
EP_HOST=http://127.0.0.1:8890/ composer run-script ${{ matrix.type.command }} |
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
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
Oops, something went wrong.