Skip to content

chore: bump compatibility headers #453

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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WP_URL=http://localhost
WP_DOMAIN=localhost
[email protected]
ADMIN_USERNAME=admin
ADMIN_PASSWORD=root
ADMIN_PASSWORD=password
ADMIN_PATH=/wp-admin

TEST_DB_NAME=wptests
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,13 @@ jobs:

strategy:
matrix:
php: [ '8.2', '8.1', '8.0' ]
wordpress: [ '6.6', '6.5', '6.4','6.3', '6.2']
## GF 2.9.x only supports from WP 6.5, and we have no way to access earlier versions.
php: [ '8.2', '8.1' ]
wordpress: [ '6.8', '6.7', '6.6', '6.5' ]
include:
- php: '8.2'
wordpress: '6.6'
wordpress: '6.8'
coverage: 1
- php: '8.0'
wordpress: '6.1'
- php: '8.0'
wordpress: '6.0'
- php: '7.4'
wordpress: '6.1'
- php: '7.4'
wordpress: '6.0'
exclude:
# New WP versions that dont support older PHP versions
- php: "8.0"
wordpress: "6.5"
- php: "8.0"
wordpress: "6.6"
fail-fast: false

steps:
Expand All @@ -59,7 +46,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@v3
with:
php-version: ${{ matrix.php }}
extensions: json, mbstring
Expand Down Expand Up @@ -130,7 +117,7 @@ jobs:

- name: Push CodeCoverage to CodeClimate
if: ${{ matrix.coverage == 1 }}
uses: paambaati/codeclimate-action@v5
uses: paambaati/codeclimate-action@v9
env:
CC_TEST_REPORTER_ID: c8f992fb9d2400821643b093de584af5a3c8d0a8f1f6f4e000592ccf0270ee29
with:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

- ci: Test compatibility against WP 6.8.x and WPGraphQL 2.3.x.

## [v0.13.0.1]

This _patch_ release fixes compatibility with Composer-based WordPress installations, and a few minor issues introduced in the previous release.
Expand Down
10 changes: 5 additions & 5 deletions bin/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ print_usage_instructions() {
echo " composer build-app"
echo " composer run-app"
echo ""
echo " WP_VERSION=6.6 PHP_VERSION=8.2 composer build-app"
echo " WP_VERSION=6.6 PHP_VERSION=8.2 composer run-app"
echo " WP_VERSION=6.8 PHP_VERSION=8.2 composer build-app"
echo " WP_VERSION=6.8 PHP_VERSION=8.2 composer run-app"
echo ""
echo " WP_VERSION=6.6 PHP_VERSION=8.2 bin/run-docker.sh build -a"
echo " WP_VERSION=6.6 PHP_VERSION=8.2 bin/run-docker.sh run -a"
echo " WP_VERSION=6.8 PHP_VERSION=8.2 bin/run-docker.sh build -a"
echo " WP_VERSION=6.8 PHP_VERSION=8.2 bin/run-docker.sh run -a"
exit 1
}

Expand All @@ -29,7 +29,7 @@ if [ $# -eq 0 ]; then
fi

TAG=${TAG-latest}
WP_VERSION=${WP_VERSION-6.6}
WP_VERSION=${WP_VERSION-6.8}
PHP_VERSION=${PHP_VERSION-8.2}

BUILD_NO_CACHE=${BUILD_NO_CACHE-}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"codeception/phpunit-wrapper": "^9.0",
"codeception/util-universalframework": "^1.0",
"lucatume/wp-browser": "<3.5",
"wp-graphql/wp-graphql-testcase": "~3.3.0",
"wp-graphql/wp-graphql-testcase": "~3.4.0",
"phpunit/phpunit": "^9.0",
"phpstan/phpstan": "^1.2",
"phpstan/extension-installer": "^1.1",
"szepeviktor/phpstan-wordpress": "^1.0",
"axepress/wp-graphql-stubs": "^1.11.1",
"axepress/wp-graphql-cs": "^2.0.0-beta",
"axepress/wp-graphql-stubs": "^2.3.0",
"axepress/wp-graphql-cs": "^2.0.0",
"wp-cli/wp-cli-bundle": "^2.8.1",
"php-coveralls/php-coveralls": "^2.5",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
Expand Down
Loading
Loading