forgejo_runner #26
2 changed files with 4 additions and 3 deletions
|
@ -43,11 +43,12 @@ jobs:
|
|||
- name: Install mysqladmin
|
||||
run: sudo apt update && sudo apt -y upgrade && sudo apt -y install mysql-client
|
||||
|
||||
- name: Clone plugin dependencies
|
||||
run: git clone https://code.event-federation.eu/Event-Federation/wordpress-activitypub.git /tmp/wordpress/wp-content/plugins/activitypub/
|
||||
|
||||
- name: Setup Test Environment
|
||||
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest
|
||||
|
||||
- run: cat /tmp/wordpress-tests-lib/wp-tests-config.php
|
||||
|
||||
- name: Unit Testing
|
||||
run: phpunit
|
||||
env:
|
||||
|
|
|
@ -29,7 +29,7 @@ require_once "{$_tests_dir}/includes/functions.php";
|
|||
* Manually load the plugin being tested.
|
||||
*/
|
||||
function _manually_load_plugin() {
|
||||
require dirname( dirname( __FILE__ ) ) . '/activitypub-event-extensions.php';
|
||||
require dirname( __DIR__ ) . '/activitypub-event-extensions.php';
|
||||
}
|
||||
|
||||
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
||||
|
|
Loading…
Reference in a new issue