Skip to content

Commit

Permalink
Bumping versions pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed May 5, 2024
1 parent 5ec8ae9 commit e86036a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 79 deletions.
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
67 changes: 18 additions & 49 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,27 @@ 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/[email protected]
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: ['latest']
include:
- php: '8.3'
wp_version: '6.1'
- php: '8.2'
wp_version: '6.1'
- php: '8.0'
wp_version: '6.1'
uses: alleyinteractive/.github/.github/workflows/php-tests.yml@feature/php-tests-core-suite
with:
multisite: ${{ matrix.multisite }}
php: ${{ matrix.php }}
wordpress: ${{ matrix.wp_version }}
test-suite: 'core-test-suite'
package-directory: 'plugins/wp-graphql-buddypress'
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### 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 (See https://github.com/alleyinteractive/alley-coding-standards)
- chore: Supports WordPress 6.5.
- ci: Updated Github Action Matrix to test more variations.
- ci: Updated CI actions to support Node 20.

## [0.1.0]

Expand Down
6 changes: 4 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 Down
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

0 comments on commit e86036a

Please sign in to comment.