From 4fcfa97d0d60de53489d0371374b30c4c525bc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 21 Sep 2024 09:31:19 +0200 Subject: [PATCH] test --- .forgejo/workflows/phpunit.yml | 3 --- bin/install-wp-tests.sh | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) 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