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/unit-tests.yml b/.github/workflows/unit-tests.yml index df9e36e..9e55867 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -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/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: ['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' diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eba701..62b371c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/readme.txt b/readme.txt index de18f70..f481d92 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. 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__,