Skip to content

Commit

Permalink
Test more versions of PHP (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman authored Mar 13, 2023
1 parent 83e10d3 commit 05b7e24
Show file tree
Hide file tree
Showing 8 changed files with 1,148 additions and 781 deletions.
43 changes: 36 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
version: 2
version: 2.1
workflows:
version: 2
main:
jobs:
- lint
- test-behat
- test-phpunit
- test-behat:
requires:
- lint
- test-phpunit:
name: "Test with PHP 7.4"
requires:
- lint
php_version: "7.4"
- test-phpunit:
name: "Test with PHP 8.0"
requires:
- lint
php_version: "8.0"
- test-phpunit:
name: "Test with PHP 8.1"
requires:
- lint
php_version: "8.1"
- test-phpunit:
name: "Test with PHP 8.2"
requires:
- lint
php_version: "8.2"
nightly:
triggers:
- schedule:
Expand All @@ -20,7 +41,7 @@ jobs:
lint:
working_directory: ~/pantheon-systems/pantheon-advanced-page-cache
docker:
- image: quay.io/pantheon-public/build-tools-ci:7.x-php7.4
- image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2
steps:
- checkout
- restore_cache:
Expand All @@ -39,7 +60,7 @@ jobs:
working_directory: ~/pantheon-systems/pantheon-advanced-page-cache
parallelism: 1
docker:
- image: quay.io/pantheon-public/build-tools-ci:7.x-php7.4
- image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -81,10 +102,18 @@ jobs:
command: ./bin/behat-cleanup.sh
when: always
test-phpunit:
parameters:
php_version:
type: enum
enum:
- "7.4"
- "8.2"
- "8.1"
- "8.0"
working_directory: ~/pantheon-systems/pantheon-advanced-page-cache
docker:
- image: cimg/php:7.4-browsers
- image: circleci/mariadb:10.3
- image: cimg/php:<< parameters.php_version >>
- image: circleci/mariadb:10.4
environment:
- WP_TESTS_DIR: "/tmp/wordpress-tests-lib"
- WP_CORE_DIR: "/tmp/wordpress/"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"behat/mink-extension": "^2.2",
"behat/mink-goutte-driver": "^1.2",
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
"wp-coding-standards/wpcs": "^2",
"wp-coding-standards/wpcs": "dev-develop as 2.3.1",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"phpunit/phpunit": "^7",
"phpunit/phpunit": "^9",
"phpcompatibility/php-compatibility": "^9.3",
"yoast/phpunit-polyfills": "^1.0"
},
Expand Down
Loading

0 comments on commit 05b7e24

Please sign in to comment.