Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.1 - Misc changes #131

Merged
merged 6 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/built-tag.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
code-quality:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
coding-standards:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
61 changes: 12 additions & 49 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<config name="testVersion" value="8.0-" />

<!-- Check against minimum WP version. -->
<config name="minimum_supported_wp_version" value="5.9" />
<config name="minimum_supported_wp_version" value="6.1" />

<!-- Name our classes files however we want. -->
<rule ref="WordPress.Files.FileName">
Expand Down
19 changes: 10 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@
"*.dist",
"*.cache",
".phpcs.xml",
"composer.lock",
".editorconfig",
"CHANGELOG.md",
"README.md",
".gitignore",
".distignore",
".deployignore",
Expand Down
23 changes: 21 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.
6 changes: 1 addition & 5 deletions wp-graphql-buddypress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__(
Expand All @@ -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__,
Expand Down