-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Ports on Multisite Domains #5675
Changes from all commits
2bc890f
1d364ae
c8fc3d7
1dc19d7
fd6b613
d340f12
b7c1877
7153a91
e18f6fa
7e50f18
94e49bc
0987a6a
d2c692d
388648b
ddb65a6
9f8295b
2198839
6c03534
4ed7743
988cec7
0665ca4
49365cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
# | ||
test-with-mysql: | ||
name: PHP ${{ matrix.php }} | ||
uses: WordPress/wordpress-develop/.github/workflows/phpunit-tests-run.yml@trunk | ||
uses: ObliviousHarmony/wordpress-develop/.github/workflows/phpunit-tests-run.yml@fix/multisite-port | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noting @johnbillion that this needs to be changed back before merging so that it doesn't break the workflow. We don't need to run actions using a random contributor's branch 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks :D |
||
permissions: | ||
contents: read | ||
secrets: inherit | ||
|
@@ -48,6 +48,7 @@ jobs: | |
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] | ||
db-type: [ 'mysql' ] | ||
db-version: [ '5.7', '8.0', '8.1', '8.2', '8.3' ] | ||
tests-domain: [ 'example.org' ] | ||
multisite: [ false, true ] | ||
memcached: [ false ] | ||
|
||
|
@@ -57,19 +58,37 @@ jobs: | |
php: '7.4' | ||
db-type: 'mysql' | ||
db-version: '5.7' | ||
tests-domain: 'example.org' | ||
multisite: false | ||
memcached: true | ||
- os: ubuntu-latest | ||
php: '7.4' | ||
db-type: 'mysql' | ||
db-version: '5.7' | ||
tests-domain: 'example.org' | ||
multisite: true | ||
memcached: true | ||
# Include jobs with a port on the test domain for both single and multisite. | ||
- os: ubuntu-latest | ||
php: '7.4' | ||
db-type: 'mysql' | ||
db-version: '5.7' | ||
tests-domain: 'example.org:8889' | ||
multisite: false | ||
memcached: false | ||
- os: ubuntu-latest | ||
php: '7.4' | ||
db-type: 'mysql' | ||
db-version: '5.7' | ||
tests-domain: 'example.org:8889' | ||
multisite: true | ||
memcached: false | ||
# Report test results to the Host Test Results. | ||
- os: ubuntu-latest | ||
php: '7.4' | ||
db-type: 'mysql' | ||
db-version: '5.7' | ||
tests-domain: 'example.org' | ||
multisite: false | ||
memcached: false | ||
report: true | ||
|
@@ -81,6 +100,7 @@ jobs: | |
multisite: ${{ matrix.multisite }} | ||
memcached: ${{ matrix.memcached }} | ||
phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} | ||
tests-domain: ${{ matrix.tests-domain }} | ||
report: ${{ matrix.report || false }} | ||
|
||
# | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this now available, would it make sense to turn this to
true
for the multisite test jobs for PHPUnit?If not, then we should at least have some type of test that ensures the environment starts and works when multisite is enabled. That could potentially be a separate workflow that tests all of the related local environment commands, and perhaps better off as a separate ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth keeping in mind that PHPUnit tests create their own tables and
wp-config.php
file. The environment variable just switchesinstall
tomultisite-install
and it wouldn't have any effect on the PHPUnit tests.It's probably not worth creating a test for installing since all it does is run
multisite-install
instead ofinstall
. The rewrite rule change is covered by the existing test workflows and the parsing is covered by PHPUnit tests.