Fix issues for WordPress.org release (#77)
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 43s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 57s
/ upload-release (push) Successful in 4s
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 43s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 59s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 57s
/ upload-release (push) Successful in 4s
Co-authored-by: André Menrath <andre.menrath@posteo.de> Co-committed-by: André Menrath <andre.menrath@posteo.de>
This commit is contained in:
parent
7f23ed17c0
commit
53cdbd3838
7 changed files with 29 additions and 17 deletions
|
@ -22,6 +22,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
|
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
|
||||||
|
wordpress-version: ['6.7']
|
||||||
name: PHPUnit – PHP ${{ matrix.php-version }}
|
name: PHPUnit – PHP ${{ matrix.php-version }}
|
||||||
env:
|
env:
|
||||||
extensions: mysql
|
extensions: mysql
|
||||||
|
@ -37,7 +38,7 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
${{ env.WP_CORE_DIR }}
|
${{ env.WP_CORE_DIR }}
|
||||||
${{ env.WP_TESTS_DIR }}
|
${{ env.WP_TESTS_DIR }}
|
||||||
key: cache-wordpress-9
|
key: cache-wordpress-67-2
|
||||||
|
|
||||||
- name: Cache Composer
|
- name: Cache Composer
|
||||||
id: cache-composer-phpunit
|
id: cache-composer-phpunit
|
||||||
|
@ -68,11 +69,11 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Test Environment
|
- name: Setup Test Environment
|
||||||
if: steps.cache-wordpress.outputs.cache-hit != 'true'
|
if: steps.cache-wordpress.outputs.cache-hit != 'true'
|
||||||
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false false false false
|
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wordpress-version }} false false false false
|
||||||
|
|
||||||
- name: Initialize WordPress test database
|
- name: Initialize WordPress test database
|
||||||
if: steps.cache-wordpress.outputs.cache-hit != 'false'
|
if: steps.cache-wordpress.outputs.cache-hit != 'false'
|
||||||
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 false true true true
|
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wordpress-version }} false true true true
|
||||||
|
|
||||||
- name: Run Integration tests for The Events Calendar
|
- name: Run Integration tests for The Events Calendar
|
||||||
run: cd /workspace/Event-Federation/wordpress-activitypub-event-bridge/ && ./vendor/bin/phpunit --filter=the_events_calendar
|
run: cd /workspace/Event-Federation/wordpress-activitypub-event-bridge/ && ./vendor/bin/phpunit --filter=the_events_calendar
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
**Contributors:** [andremenrath](https://profiles.wordpress.org/andremenrath/)
|
**Contributors:** [andremenrath](https://profiles.wordpress.org/andremenrath/)
|
||||||
**Tags:** events, fediverse, activitypub, calendar
|
**Tags:** events, fediverse, activitypub, calendar
|
||||||
**Requires at least:** 6.5
|
**Requires at least:** 6.5
|
||||||
**Tested up to:** 6.6
|
**Tested up to:** 6.7
|
||||||
**Stable tag:** 0.2.0
|
**Stable tag:** 0.2.1
|
||||||
**Requires PHP:** 7.4
|
**Requires PHP:** 7.4
|
||||||
**License:** AGPL-3.0-or-later
|
**License:** AGPL-3.0-or-later
|
||||||
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
|
@ -73,6 +73,7 @@ If you're new to the [ActivityPub plugin](https://wordpress.org/plugins/activity
|
||||||
### Do I need to install another event plugin to use the Event Federation Plugin? ###
|
### Do I need to install another event plugin to use the Event Federation Plugin? ###
|
||||||
|
|
||||||
Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/).
|
Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/).
|
||||||
|
|
||||||
### What platforms can follow my events? ###
|
### What platforms can follow my events? ###
|
||||||
|
|
||||||
Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events.
|
Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: ActivityPub Event Bridge
|
* Plugin Name: ActivityPub Event Bridge
|
||||||
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
* Description: Integrating popular event plugins with the ActivityPub plugin.
|
||||||
* Plugin URI: https://event-federation.eu/
|
* Plugin URI: https://event-federation.eu/
|
||||||
* Version: 0.2.0
|
* Version: 0.2.1
|
||||||
* Author: André Menrath
|
* Author: André Menrath
|
||||||
* Author URI: https://graz.social/@linos
|
* Author URI: https://graz.social/@linos
|
||||||
* Text Domain: activitypub-event-bridge
|
* Text Domain: activitypub-event-bridge
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 7.4
|
||||||
*
|
*
|
||||||
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.0.1.
|
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.2.0.
|
||||||
*
|
*
|
||||||
* @package ActivityPub_Event_Bridge
|
* @package ActivityPub_Event_Bridge
|
||||||
* @license AGPL-3.0-or-later
|
* @license AGPL-3.0-or-later
|
||||||
|
|
|
@ -208,9 +208,15 @@ install_wp_plugin() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the latest tag.
|
# Get the latest tag.
|
||||||
|
if [ -z "$2" ]; then
|
||||||
LATEST_TAG=$(svn log https://plugins.svn.wordpress.org/$PLUGIN_NAME/tags --limit 1 | awk 'NR == 4 { print $4 }')
|
LATEST_TAG=$(svn log https://plugins.svn.wordpress.org/$PLUGIN_NAME/tags --limit 1 | awk 'NR == 4 { print $4 }')
|
||||||
if [ -n "$LATEST_TAG" ]; then
|
PLUGIN_VERSION=$LATEST_TAG
|
||||||
PLUGIN_FILE="$PLUGIN_NAME.$LATEST_TAG.zip"
|
else
|
||||||
|
PLUGIN_VERSION=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$PLUGIN_VERSION" ]; then
|
||||||
|
PLUGIN_FILE="$PLUGIN_NAME.$PLUGIN_VERSION.zip"
|
||||||
else
|
else
|
||||||
PLUGIN_FILE="$PLUGIN_NAME.zip"
|
PLUGIN_FILE="$PLUGIN_NAME.zip"
|
||||||
fi
|
fi
|
||||||
|
@ -248,12 +254,12 @@ install_wp_plugins() {
|
||||||
# Install the one and only ActivityPub plugin (greetings @pfefferle).
|
# Install the one and only ActivityPub plugin (greetings @pfefferle).
|
||||||
install_wp_plugin activitypub
|
install_wp_plugin activitypub
|
||||||
# Install (not-activate) all supported event plugins.
|
# Install (not-activate) all supported event plugins.
|
||||||
install_wp_plugin the-events-calendar
|
install_wp_plugin the-events-calendar "6.8.1"
|
||||||
install_wp_plugin very-simple-event-list
|
install_wp_plugin very-simple-event-list
|
||||||
install_wp_plugin gatherpress
|
install_wp_plugin gatherpress
|
||||||
install_wp_plugin events-manager
|
install_wp_plugin events-manager "6.6.3"
|
||||||
install_wp_plugin wp-event-manager
|
install_wp_plugin wp-event-manager "3.1.45.1"
|
||||||
install_wp_plugin wp-event-solution
|
install_wp_plugin wp-event-solution "4.0.14"
|
||||||
# Mec is not installable via wordpress.org, we use our own mirror.
|
# Mec is not installable via wordpress.org, we use our own mirror.
|
||||||
install_wp_plugin_mec
|
install_wp_plugin_mec
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ final class Modern_Events_Calendar_Lite extends Event_plugin {
|
||||||
*/
|
*/
|
||||||
public static function get_post_type(): string {
|
public static function get_post_type(): string {
|
||||||
// See MEC_feature_events->get_main_post_type().
|
// See MEC_feature_events->get_main_post_type().
|
||||||
return apply_filters( 'mec_post_type_name', 'mec-events' ); // phpcs:ignore
|
return 'mec-events';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
Contributors: andremenrath
|
Contributors: andremenrath
|
||||||
Tags: events, fediverse, activitypub, calendar
|
Tags: events, fediverse, activitypub, calendar
|
||||||
Requires at least: 6.5
|
Requires at least: 6.5
|
||||||
Tested up to: 6.6
|
Tested up to: 6.7
|
||||||
Stable tag: 0.2.0
|
Stable tag: 0.2.1
|
||||||
Requires PHP: 7.4
|
Requires PHP: 7.4
|
||||||
License: AGPL-3.0-or-later
|
License: AGPL-3.0-or-later
|
||||||
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
License URI: https://www.gnu.org/licenses/agpl-3.0.html
|
||||||
|
@ -67,6 +67,7 @@ If you're new to the [ActivityPub plugin](https://wordpress.org/plugins/activity
|
||||||
= Do I need to install another event plugin to use the Event Federation Plugin? =
|
= Do I need to install another event plugin to use the Event Federation Plugin? =
|
||||||
|
|
||||||
Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/).
|
Yes, this plugin works as an add-on and requires both the ActivityPub plugin and a supported event plugin such as The Events Calendar, VS Event List, or Events Manager to manage your events. It just fills the missing gap between event plugins and the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/).
|
||||||
|
|
||||||
= What platforms can follow my events? =
|
= What platforms can follow my events? =
|
||||||
|
|
||||||
Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events.
|
Your events can be followed on platforms that support ActivityPub like [Mobilizon](https://joinmobilizon.org/), [Gancio](https://gancio.org), [Friendica](https://friendi.ca), [Hubzilla](https://hubzilla.org), and [Pleroma](https://pleroma.social/). Even other applications like [Mastodon](https://joinmastodon.org), which don't fully support events yet, will display all important information about the events.
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
* @package ActivityPub_Event_Bridge
|
* @package ActivityPub_Event_Bridge
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
/* @var array $args Template arguments. */
|
/* @var array $args Template arguments. */
|
||||||
$args = wp_parse_args(
|
$args = wp_parse_args(
|
||||||
$args,
|
$args,
|
||||||
|
|
Loading…
Reference in a new issue