diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index cbfad79..57079a2 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -41,9 +41,6 @@ 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 $WP_CORE_DIR/wp-content/plugins/activitypub/ - - name: Setup Test Environment run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 88f2a57..e772021 100644 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -177,6 +177,12 @@ install_db() { fi } +install_wp_plugins() { + download https://downloads.wordpress.org/plugin/activitypub.3.2.5.zip $TMPDIR/activitypub.zip + unzip $TMPDIR/activitypub.zip -d $WP_CORE_DIR/wp-content/plugins/ +} + install_wp +install_wp_plugins install_test_suite install_db