-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/original-user-language-output
- Loading branch information
Showing
28 changed files
with
356 additions
and
269 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
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
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,50 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | ||
|
||
name: Nightly Tests | ||
on: | ||
schedule: | ||
# Once weekly on Mondays at 04:00 UTC. | ||
# | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌────────── hour (0 - 23) | ||
# │ │ ┌─────── day of the month (1 - 31) | ||
# │ │ │ ┌──── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌─ day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
- cron: '0 4 * * 1' | ||
push: | ||
branches: | ||
- 'develop' | ||
paths: | ||
- '.github/workflows/nightly-tests.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
acceptance: | ||
name: Nightly acceptance / PHP ${{ matrix.php }} | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.3' | ||
- '7.4' | ||
fail-fast: false | ||
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-acceptance-tests.yml@trunk | ||
with: | ||
wp: 'nightly' | ||
php: ${{ matrix.php }} | ||
node: false | ||
integration: | ||
name: Nightly integration / PHP ${{ matrix.php }} | ||
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-integration-tests.yml@trunk | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.3' | ||
- '7.4' | ||
fail-fast: false | ||
with: | ||
wp: 'nightly' | ||
php: ${{ matrix.php }} | ||
node: false |
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,42 @@ | ||
{ | ||
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
"landingPage": "/wp-admin/users.php", | ||
"steps": [ | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "wordpress.org/plugins", | ||
"slug": "user-switching" | ||
} | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/mu-plugins/user-switching-helper.php", | ||
"data":{ | ||
"resource":"url", | ||
"url":"https://raw.githubusercontent.com/johnbillion/user-switching/trunk/.wordpress-org/blueprints/user-switching-helper.php" | ||
} | ||
}, | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
}, | ||
{ | ||
"step": "wp-cli", | ||
"command": "wp user create editor editor@example.com --role=editor" | ||
}, | ||
{ | ||
"step": "wp-cli", | ||
"command": "wp user create author author@example.com --role=author" | ||
}, | ||
{ | ||
"step": "wp-cli", | ||
"command": "wp user create contributor contributor@example.com --role=contributor" | ||
}, | ||
{ | ||
"step": "wp-cli", | ||
"command": "wp user create subscriber subscriber@example.com --role=subscriber" | ||
} | ||
] | ||
} |
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,13 @@ | ||
<?php | ||
/** | ||
* Plugin Name: User Switching Playground Helper | ||
* Description: A helper plugin for running User Switching in the WordPress playground | ||
*/ | ||
|
||
add_filter( | ||
'user_row_actions', | ||
function ( array $actions ) { | ||
unset( $actions['resetpassword'] ); | ||
return $actions; | ||
} | ||
); |
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
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.