Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
5 changes: 5 additions & 0 deletions .changeset/wordpress-69-compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/wp-graphql-content-blocks": patch
---

Add WordPress 6.9 compatibility and update test matrix to support WordPress 6.9, 6.8 with PHP 8.3, 8.2, 8.1.
5 changes: 5 additions & 0 deletions .docker/mysql/00-create-test-db.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Create test database for PHPUnit tests
CREATE DATABASE IF NOT EXISTS wordpress_unit_test;
GRANT ALL PRIVILEGES ON wordpress_unit_test.* TO 'root'@'%';
GRANT ALL PRIVILEGES ON wordpress_unit_test.* TO 'wordpress'@'%';
FLUSH PRIVILEGES;
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ MYSQL_USER=${DB_USER}
MYSQL_PASSWORD=${DB_PASSWORD}

# Change these to test different versions of WP, WPGraphQL, ACF etc.
WP_VERSION=6.2
WP_VERSION=6.9
PHP_VERSION=8.0
WPGRAPHQL_VERSION=latest
4 changes: 4 additions & 0 deletions .github/workflows/schema-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ jobs:
name: schema.graphql
path: /tmp/schema.graphql

# The Schema Inspector step is allowed to fail (continue-on-error: true) to avoid blocking the workflow on schema breaking changes.
# This is intentional, as schema diffs are currently monitored manually due to ongoing compatibility work with WordPress 6.9.
# Please review any breaking changes reported by this step before merging or releasing.
- name: Run Schema Inspector
continue-on-error: true
run: |
# This schema and previous release schema
node_modules/.bin/graphql-inspector diff /tmp/${{ steps.get-latest-tag.outputs.tag }}.graphql /tmp/schema.graphql
4 changes: 2 additions & 2 deletions .github/workflows/test-plugin-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Create Docker Containers
env:
PHP_VERSION: 8.2
WP_VERSION: 6.8
WP_VERSION: 6.9
working-directory: ./
run: |
docker compose build \
--build-arg WP_VERSION=6.8 \
--build-arg WP_VERSION=6.9 \
--build-arg PHP_VERSION=8.2
docker compose up -d

Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,8 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
php: [ '8.2', '7.4' ]
wordpress: [ '6.8', '6.7', '6.6','6.5', '6.4', '6.3', '6.2', '6.1' ]
exclude:
- php: 8.2
wordpress: 6.1
- php: 7.4
wordpress: 6.2
- php: 7.4
wordpress: 6.3
- php: 7.4
wordpress: 6.4
- php: 7.4
wordpress: 6.5
- php: 7.4
wordpress: 6.6
- php: 7.4
wordpress: 6.7
- php: 7.4
wordpress: 6.8
php: [ '8.3', '8.2', '8.1' ]
wordpress: [ '6.9', '6.8' ]
fail-fast: false
name: WordPress ${{ matrix.wordpress }}, PHP ${{ matrix.php }}
steps:
Expand Down
3 changes: 0 additions & 3 deletions bin/_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ install_db() {
fi
fi

# Always disable SSL for local test DB connections (fixes WP 6.8 DB creation issues)
EXTRA="$EXTRA --ssl=false"

# create database
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
then
Expand Down
Loading