diff --git a/.github/workflows/built-tag.yml b/.github/workflows/built-tag.yml
deleted file mode 100644
index e6f5c22..0000000
--- a/.github/workflows/built-tag.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: Create a -built tag
-
-on:
- push:
- tags:
- - 'v*.*.*'
- - '!*-built'
-
-jobs:
- built-tag:
- uses: alleyinteractive/.github/.github/workflows/built-tag.yml@main
diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml
index 0fa0519..04f9471 100644
--- a/.github/workflows/code-quality.yml
+++ b/.github/workflows/code-quality.yml
@@ -5,8 +5,6 @@ on:
branches:
- main
pull_request:
- schedule:
- - cron: '0 0 * * *'
jobs:
code-quality:
diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml
index 4d12a62..e2b6af8 100644
--- a/.github/workflows/coding-standards.yml
+++ b/.github/workflows/coding-standards.yml
@@ -5,8 +5,6 @@ on:
branches:
- main
pull_request:
- schedule:
- - cron: '0 0 * * *'
jobs:
coding-standards:
diff --git a/.github/workflows/deploy-to-wordpress.yml b/.github/workflows/deploy-to-wordpress.yml
index 109f35a..16b43b2 100644
--- a/.github/workflows/deploy-to-wordpress.yml
+++ b/.github/workflows/deploy-to-wordpress.yml
@@ -15,7 +15,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
- php-version: 8.0
+ php-version: 8.2
extensions: mbstring, intl
tools: composer:v2
coverage: none
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index df9e36e..0085e74 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -5,58 +5,21 @@ on:
branches:
- main
pull_request:
- schedule:
- - cron: '0 0 * * *'
jobs:
tests:
- name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }} - (MU: ${{ matrix.multisite }})"
- runs-on: ubuntu-latest
+ name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }}"
strategy:
- fail-fast: false # do not fail fast, let all the failing tests fail.
+ fail-fast: false
matrix:
php: [8.0, 8.1, 8.2, 8.3]
- multisite: [0, 1]
- wp_version: ['5.9', 'latest']
- env:
- WP_CORE_DIR: /tmp/wordpress/
- WP_TESTS_DIR: /tmp/wordpress-tests-lib
- WP_VERSION: ${{ matrix.wp_version }}
- WP_MULTISITE: ${{ matrix.multisite }}
- services:
- mysql:
- image: mysql:8.0
- env:
- MYSQL_ALLOW_EMPTY_PASSWORD: yes
- ports:
- - 3306:3306
- options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
- steps:
- - name: Cancel previous runs of this workflow (pull requests only)
- if: ${{ github.event_name == 'pull_request' }}
- uses: styfle/cancel-workflow-action@0.12.1
- with:
- access_token: ${{ github.token }}
-
- - name: Check out code
- uses: actions/checkout@v4
-
- - name: Set up PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- tools: composer:v2
- coverage: none
-
- - name: Set up WordPress and Plugin
- run: |
- bash <(curl -s "https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh") wordpress_unit_tests root '' 127.0.0.1 ${{ matrix.wp_version }}
- rm -rf "${WP_CORE_DIR}wp-content/plugins"
- mkdir -p "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress"
- rsync -a --exclude=.git . "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress"
- cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress && composer install
-
- - name: Run all tests
- run: |
- cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress
- composer phpunit
+ multisite: [true, false]
+ wp_version: ['6.1', 'latest']
+ uses: alleyinteractive/.github/.github/workflows/php-tests.yml@feature/php-tests-core-suite
+ with:
+ multisite: ${{ matrix.multisite }}
+ php: ${{ matrix.php }}
+ wordpress: ${{ matrix.wp_version }}
+ object-cache: ${{ matrix.object }}
+ test-suite: 'core-test-suite'
+ package-directory: 'plugins/wp-graphql-buddypress'
diff --git a/.phpcs.xml b/.phpcs.xml
index 5e38059..0837497 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -33,7 +33,7 @@
-
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5eba701..f75638e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,21 +4,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [0.1.1] Unpublished
+## [0.1.1] 2024-05-06
### Added
-- Support BuddyPress Community Visibility, "Private Site", feature [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118)
-- Add `resendSignupEmail` mutation to resend activation email [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127)
-- Added a `CHANGELOG.md` file
-- Add list of plugin dependencies [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115)
+- [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118): feat: Support BuddyPress Community Visibility, "Private Site".
+- [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127): feat: Add `resendSignupEmail` mutation to resend activation email
+- [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115): chore: Add list of plugin dependencies
+- chore: Added a `CHANGELOG.md` file
### Updated
-- Upgrade to WPCS/VIPCS 3.0 (See https://github.com/alleyinteractive/alley-coding-standards)
-- Updated Github Action Matrix to test more variations.
-- Supports WordPress 6.5.
-- Updated CI actions to support Node 20.
+- chore: Upgrade to WPCS/VIPCS 3.0
+- chore: Supports WordPress 6.5.
+- ci: Updated Github Action Matrix to test more variations.
+- ci: Updated CI actions to support Node 20.
+- ci: removed Github Action `-built-branch` action.
## [0.1.0]
diff --git a/composer.json b/composer.json
index 1751d15..c081236 100644
--- a/composer.json
+++ b/composer.json
@@ -109,7 +109,10 @@
"*.dist",
"*.cache",
".phpcs.xml",
+ "composer.lock",
".editorconfig",
+ "CHANGELOG.md",
+ "README.md",
".gitignore",
".distignore",
".deployignore",
diff --git a/readme.txt b/readme.txt
index de18f70..fcdfac2 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,13 +1,15 @@
=== WPGraphQL BuddyPress ===
Contributors: espellcaste
-Tags: graphql, bp graphql, wp-graphql, rest, community, api, buddypress, social networking
+Tags: graphql, wp-graphql, community, buddypress
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Requires PHP: 8.0
-Requires at least: 5.9
+Requires at least: 6.1
Tested up to: 6.5.2
Stable tag: 0.1.1
+Get together safely, in your own way, in WordPress.
+
== Description ==
WPGraphQL BuddyPress is a free and open-source extension for the WPGraphQL plugin, bringing the power of GraphQL to BuddyPress.
@@ -32,6 +34,23 @@ Head over to the [BuddyPress Documentation](https://codex.buddypress.org/partici
== Changelog ==
+= 0.1.1 = 2024-05-06
+
+**New Features**
+
+- [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118): feat: Support BuddyPress Community Visibility: "Private Site".
+- [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127): feat: Add `resendSignupEmail` mutation to resend activation email
+
+**Chores / Bugfixes**
+
+- [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115): chore: Add list of plugin dependencies
+- chore: Added a `CHANGELOG.md` file
+- chore: Upgrade to WPCS/VIPCS 3.0
+- chore: Supports WordPress 6.5.
+- ci: Updated Github Action Matrix to test more variations.
+- ci: Updated CI actions to support Node 20.
+- ci: removed Github Action `-built-branch` action.
+
= 0.1.0 =
Public Stable Release.
diff --git a/wp-graphql-buddypress.php b/wp-graphql-buddypress.php
index f266e4f..2292777 100644
--- a/wp-graphql-buddypress.php
+++ b/wp-graphql-buddypress.php
@@ -16,9 +16,8 @@
* Author: Renato Alves
* Author URI: https://ralv.es
* Text Domain: wp-graphql-buddypress
- * Domain Path: /languages/
* Requires PHP: 8.0
- * Requires WP: 5.9
+ * Requires WP: 6.1
* Tested up to: 6.5.2
* Requires Plugins: wp-graphql, buddypress
* License: GPL-3.0-or-later
@@ -77,8 +76,6 @@ public static function instance(): self {
* therefore, we don't want the object to be cloned.
*/
public function __clone(): void {
-
- // Cloning instances of the class is forbidden.
_doing_it_wrong(
__FUNCTION__,
esc_html__(
@@ -93,7 +90,6 @@ public function __clone(): void {
* Disable unserializing of the class.
*/
public function __wakeup(): void {
-
// De-serializing instances of the class is forbidden.
_doing_it_wrong(
__FUNCTION__,