Skip to content

Commit 43a1092

Browse files
Merge pull request #131 from renatonascalves/feature/pre-release
v0.1.1 - Misc changes
2 parents 5ec8ae9 + 7775153 commit 43a1092

File tree

10 files changed

+49
-82
lines changed

10 files changed

+49
-82
lines changed

.github/workflows/built-tag.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/code-quality.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- main
77
pull_request:
8-
schedule:
9-
- cron: '0 0 * * *'
108

119
jobs:
1210
code-quality:

.github/workflows/coding-standards.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- main
77
pull_request:
8-
schedule:
9-
- cron: '0 0 * * *'
108

119
jobs:
1210
coding-standards:

.github/workflows/deploy-to-wordpress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.0
18+
php-version: 8.2
1919
extensions: mbstring, intl
2020
tools: composer:v2
2121
coverage: none

.github/workflows/unit-tests.yml

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,21 @@ on:
55
branches:
66
- main
77
pull_request:
8-
schedule:
9-
- cron: '0 0 * * *'
108

119
jobs:
1210
tests:
13-
name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }} - (MU: ${{ matrix.multisite }})"
14-
runs-on: ubuntu-latest
11+
name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }}"
1512
strategy:
16-
fail-fast: false # do not fail fast, let all the failing tests fail.
13+
fail-fast: false
1714
matrix:
1815
php: [8.0, 8.1, 8.2, 8.3]
19-
multisite: [0, 1]
20-
wp_version: ['5.9', 'latest']
21-
env:
22-
WP_CORE_DIR: /tmp/wordpress/
23-
WP_TESTS_DIR: /tmp/wordpress-tests-lib
24-
WP_VERSION: ${{ matrix.wp_version }}
25-
WP_MULTISITE: ${{ matrix.multisite }}
26-
services:
27-
mysql:
28-
image: mysql:8.0
29-
env:
30-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
31-
ports:
32-
- 3306:3306
33-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
34-
steps:
35-
- name: Cancel previous runs of this workflow (pull requests only)
36-
if: ${{ github.event_name == 'pull_request' }}
37-
uses: styfle/[email protected]
38-
with:
39-
access_token: ${{ github.token }}
40-
41-
- name: Check out code
42-
uses: actions/checkout@v4
43-
44-
- name: Set up PHP
45-
uses: shivammathur/setup-php@v2
46-
with:
47-
php-version: ${{ matrix.php }}
48-
tools: composer:v2
49-
coverage: none
50-
51-
- name: Set up WordPress and Plugin
52-
run: |
53-
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 }}
54-
rm -rf "${WP_CORE_DIR}wp-content/plugins"
55-
mkdir -p "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress"
56-
rsync -a --exclude=.git . "${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress"
57-
cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress && composer install
58-
59-
- name: Run all tests
60-
run: |
61-
cd ${WP_CORE_DIR}wp-content/plugins/wp-graphql-buddypress
62-
composer phpunit
16+
multisite: [true, false]
17+
wp_version: ['6.1', 'latest']
18+
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@feature/php-tests-core-suite
19+
with:
20+
multisite: ${{ matrix.multisite }}
21+
php: ${{ matrix.php }}
22+
wordpress: ${{ matrix.wp_version }}
23+
object-cache: ${{ matrix.object }}
24+
test-suite: 'core-test-suite'
25+
package-directory: 'plugins/wp-graphql-buddypress'

.phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<config name="testVersion" value="8.0-" />
3434

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

3838
<!-- Name our classes files however we want. -->
3939
<rule ref="WordPress.Files.FileName">

CHANGELOG.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.1.1] Unpublished
7+
## [0.1.1] 2024-05-06
88

99
### Added
1010

11-
- Support BuddyPress Community Visibility, "Private Site", feature [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118)
12-
- Add `resendSignupEmail` mutation to resend activation email [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127)
13-
- Added a `CHANGELOG.md` file
14-
- Add list of plugin dependencies [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115)
11+
- [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118): feat: Support BuddyPress Community Visibility, "Private Site".
12+
- [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127): feat: Add `resendSignupEmail` mutation to resend activation email
13+
- [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115): chore: Add list of plugin dependencies
14+
- chore: Added a `CHANGELOG.md` file
1515

1616
### Updated
1717

18-
- Upgrade to WPCS/VIPCS 3.0 (See https://github.com/alleyinteractive/alley-coding-standards)
19-
- Updated Github Action Matrix to test more variations.
20-
- Supports WordPress 6.5.
21-
- Updated CI actions to support Node 20.
18+
- chore: Upgrade to WPCS/VIPCS 3.0
19+
- chore: Supports WordPress 6.5.
20+
- ci: Updated Github Action Matrix to test more variations.
21+
- ci: Updated CI actions to support Node 20.
22+
- ci: removed Github Action `-built-branch` action.
2223

2324
## [0.1.0]
2425

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@
109109
"*.dist",
110110
"*.cache",
111111
".phpcs.xml",
112+
"composer.lock",
112113
".editorconfig",
114+
"CHANGELOG.md",
115+
"README.md",
113116
".gitignore",
114117
".distignore",
115118
".deployignore",

readme.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
=== WPGraphQL BuddyPress ===
22
Contributors: espellcaste
3-
Tags: graphql, bp graphql, wp-graphql, rest, community, api, buddypress, social networking
3+
Tags: graphql, wp-graphql, community, buddypress
44
License: GPL-3.0-or-later
55
License URI: https://www.gnu.org/licenses/gpl-3.0.html
66
Requires PHP: 8.0
7-
Requires at least: 5.9
7+
Requires at least: 6.1
88
Tested up to: 6.5.2
99
Stable tag: 0.1.1
1010

11+
Get together safely, in your own way, in WordPress.
12+
1113
== Description ==
1214

1315
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
3234

3335
== Changelog ==
3436

37+
= 0.1.1 = 2024-05-06
38+
39+
**New Features**
40+
41+
- [#118](https://github.com/renatonascalves/wp-graphql-buddypress/issues/118): feat: Support BuddyPress Community Visibility: "Private Site".
42+
- [#127](https://github.com/renatonascalves/wp-graphql-buddypress/issues/127): feat: Add `resendSignupEmail` mutation to resend activation email
43+
44+
**Chores / Bugfixes**
45+
46+
- [#115](https://github.com/renatonascalves/wp-graphql-buddypress/issues/115): chore: Add list of plugin dependencies
47+
- chore: Added a `CHANGELOG.md` file
48+
- chore: Upgrade to WPCS/VIPCS 3.0
49+
- chore: Supports WordPress 6.5.
50+
- ci: Updated Github Action Matrix to test more variations.
51+
- ci: Updated CI actions to support Node 20.
52+
- ci: removed Github Action `-built-branch` action.
53+
3554
= 0.1.0 =
3655

3756
Public Stable Release.

wp-graphql-buddypress.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
* Author: Renato Alves
1717
* Author URI: https://ralv.es
1818
* Text Domain: wp-graphql-buddypress
19-
* Domain Path: /languages/
2019
* Requires PHP: 8.0
21-
* Requires WP: 5.9
20+
* Requires WP: 6.1
2221
* Tested up to: 6.5.2
2322
* Requires Plugins: wp-graphql, buddypress
2423
* License: GPL-3.0-or-later
@@ -77,8 +76,6 @@ public static function instance(): self {
7776
* therefore, we don't want the object to be cloned.
7877
*/
7978
public function __clone(): void {
80-
81-
// Cloning instances of the class is forbidden.
8279
_doing_it_wrong(
8380
__FUNCTION__,
8481
esc_html__(
@@ -93,7 +90,6 @@ public function __clone(): void {
9390
* Disable unserializing of the class.
9491
*/
9592
public function __wakeup(): void {
96-
9793
// De-serializing instances of the class is forbidden.
9894
_doing_it_wrong(
9995
__FUNCTION__,

0 commit comments

Comments
 (0)