Skip to content

Commit

Permalink
ci: test against WP 6.5 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine authored Apr 6, 2024
1 parent 7799116 commit 781e62d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 27 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,28 @@ jobs:

strategy:
matrix:
php: [ '8.1', '8.0', '7.4' ]
wordpress: [ '6.2', '6.1', '6.0', '5.9' ]
php: ["8.2", "8.1", "8.0"]
wordpress: ["6.5", "6.4", "6.3", "6.2", "6.1", "6.0", "5.9" ]
include:
- php: '8.1'
wordpress: '6.2'
extensions: 'true'
- php: "8.2"
wordpress: "6.5"
coverage: 1
# Older versions of WordPress
- php: '8.0'
wordpress: '5.8'
- php: '8.0'
wordpress: '5.7'
- php: '7.4'
wordpress: '5.8'
- php: '7.4'
wordpress: '5.7'
- php: '7.4'
wordpress: '5.6'
# Test old versions against PHP 8.0
- php: "7.4"
wordpress: "6.1"
- php: "7.4"
wordpress: "6.0"
- php: "7.4"
wordpress: "5.9"
exclude:
- php: '7.4'
wordpress: '6.2'
# Old WP versions that dont support newer PHP versions
- php: "8.2"
wordpress: "6.0"
- php: "8.1"
wordpress: "5.9"
# New WP versions that dont support older PHP versions
- php: "8.0"
wordpress: "6.5"
fail-fast: false

steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

ci: update GitHub Workflows.
ci: Test against WP 6.5.

## v0.4.4

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.2 PHP_VERSION=8.1 composer build-app"
echo " WP_VERSION=6.2 PHP_VERSION=8.1 composer run-app"
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 ""
echo " WP_VERSION=6.2 PHP_VERSION=8.1 bin/run-docker.sh build -a"
echo " WP_VERSION=6.2 PHP_VERSION=8.1 bin/run-docker.sh run -a"
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"
exit 1
}

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

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

BUILD_NO_CACHE=${BUILD_NO_CACHE-}
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
app:
depends_on:
- app_db
image: wp-graphql-facetwp:latest-wp${WP_VERSION-6.2}-php${PHP_VERSION-8.1}
image: wp-graphql-facetwp:latest-wp${WP_VERSION-6.5}-php${PHP_VERSION-8.1}
volumes:
- .:/var/www/html/wp-content/plugins/wp-graphql-facetwp
- ./.log/app:/var/log/apache2
Expand Down Expand Up @@ -36,7 +36,7 @@ services:
testing:
depends_on:
- app_db
image: wp-graphql-facetwp-testing:latest-wp${WP_VERSION-6.2}-php${PHP_VERSION-8.1}
image: wp-graphql-facetwp-testing:latest-wp${WP_VERSION-6.5}-php${PHP_VERSION-8.1}
volumes:
- .:/var/www/html/wp-content/plugins/wp-graphql-facetwp
- ./.log/testing:/var/log/apache2
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires at least: 5.4.1
Requires PHP: 7.4
Requires FacetWP: 4.0
Requires WPGraphQL: 1.6.0
Tested up to: 6.2.2
Tested up to: 6.5
Stable tag: 0.4.4
Maintained at: https://github.com/hsimah-services/wp-graphql-facetwp
License: GPL-3
Expand Down
2 changes: 1 addition & 1 deletion wp-graphql-facetwp.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Requires PHP: 7.4
* WPGraphQL requires at least: 1.6.0
* FacetWP requires at least: 4.0
* Tested up to: 6.2.2
* Tested up to: 6.5
* License: GPL-3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
Expand Down

0 comments on commit 781e62d

Please sign in to comment.