Skip to content

Commit

Permalink
Merge pull request #406 from justlevine/ci/php-8.2
Browse files Browse the repository at this point in the history
ci: Test plugin compatibility with PHP 8.2.
  • Loading branch information
justlevine committed Apr 6, 2024
2 parents 0a2b375 + 5b6bd48 commit 5afaeb5
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Setup PHP w/ Composer & WP-CLI
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: mbstring, intl, bcmath, exif, gd, mysqli, opcache, zip, pdo_mysql
tools: composer:v2, wp-cli
coverage: none
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-standard.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
tools: composer:v2
coverage: none

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/integration-testing.yml
Expand Up @@ -30,27 +30,27 @@ jobs:

strategy:
matrix:
php: [ '8.0', '7.4' ]
wordpress: [ '6.5', '6.4','6.3', '6.2', '6.1', '6.0', '5.9', '5.8', '5.7' ]
php: [ '8.2', '8.1', '8.0' ]
wordpress: [ '6.5', '6.4','6.3', '6.2', '6.1', '6.0' ]
include:
- php: '8.1'
- php: '8.2'
wordpress: '6.5'
coverage: 1
- php: '8.1'
wordpress: '6.4'
- php: '8.1'
wordpress: '6.3'
- php: '8.1'
wordpress: '6.2'
exclude:
- php: '7.4'
wordpress: '6.5'
wordpress: '6.1'
- php: '7.4'
wordpress: '6.4'
wordpress: '6.0'
- php: '7.4'
wordpress: '6.3'
wordpress: '5.9'
- php: '7.4'
wordpress: '6.2'
wordpress: '5.8'
- php: '7.4'
wordpress: '5.7'
exclude:
# Old WP versions that dont support newer PHP versions
- php: "8.2"
wordpress: "6.0"
# New WP versions that dont support older PHP versions
- php: "8.0"
wordpress: "6.5"
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schema-linter.yml
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup PHP w/ Composer & WP-CLI
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: mbstring, intl, bcmath, exif, gd, mysqli, opcache, zip, pdo_mysql
coverage: none
tools: composer:v2, wp-cli
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@
- chore: lock WPBrowser to <3.5.0 to prevent conflicts with Codeception.
- ci: Update GitHub Actions to latest versions.
- ci: Test plugin compatibility with WordPress 6.5.0.
- ci: Test plugin compatibility with PHP 8.2.

## v0.12.5

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -25,7 +25,7 @@ Our hope for this open source project is that it will enable more teams to lever

## System Requirements

* PHP 7.4-8.1+
* PHP 7.4-8.2+
* WordPress 5.4.1+
* WPGraphQL 1.9.0+
* Gravity Forms 2.5+ (Recommend: v2.6+)
Expand Down
10 changes: 5 additions & 5 deletions bin/run-docker.sh
Expand Up @@ -16,11 +16,11 @@ print_usage_instructions() {
echo " composer build-app"
echo " composer run-app"
echo ""
echo " WP_VERSION=6.5 PHP_VERSION=8.1 composer build-app"
echo " WP_VERSION=6.5 PHP_VERSION=8.1 composer run-app"
echo " WP_VERSION=6.5 PHP_VERSION=8.2 composer build-app"
echo " WP_VERSION=6.5 PHP_VERSION=8.2 composer run-app"
echo ""
echo " WP_VERSION=6.5 PHP_VERSION=8.1 bin/run-docker.sh build -a"
echo " WP_VERSION=6.5 PHP_VERSION=8.1 bin/run-docker.sh run -a"
echo " WP_VERSION=6.5 PHP_VERSION=8.2 bin/run-docker.sh build -a"
echo " WP_VERSION=6.5 PHP_VERSION=8.2 bin/run-docker.sh run -a"
exit 1
}

Expand All @@ -30,7 +30,7 @@ fi

TAG=${TAG-latest}
WP_VERSION=${WP_VERSION-6.5}
PHP_VERSION=${PHP_VERSION-8.1}
PHP_VERSION=${PHP_VERSION-8.2}

BUILD_NO_CACHE=${BUILD_NO_CACHE-}

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -4,7 +4,7 @@ services:
app:
depends_on:
- app_db
image: wp-graphql-gravity-forms:latest-wp${WP_VERSION-6.3}-php${PHP_VERSION-8.1}
image: wp-graphql-gravity-forms:latest-wp${WP_VERSION-6.3}-php${PHP_VERSION-8.2}
volumes:
- .:/var/www/html/wp-content/plugins/wp-graphql-gravity-forms
- ./.log/app:/var/log/apache2
Expand Down Expand Up @@ -36,7 +36,7 @@ services:
testing:
depends_on:
- app_db
image: wp-graphql-gravity-forms-testing:latest-wp${WP_VERSION-6.0}-php${PHP_VERSION-8.1}
image: wp-graphql-gravity-forms-testing:latest-wp${WP_VERSION-6.0}-php${PHP_VERSION-8.2}
volumes:
- .:/var/www/html/wp-content/plugins/wp-graphql-gravity-forms
- ./.log/testing:/var/log/apache2
Expand Down

0 comments on commit 5afaeb5

Please sign in to comment.