Skip to content
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

PLANET-5434: Add PHP 8.1 job #1858

Merged
merged 4 commits into from
Dec 12, 2022
Merged
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
16 changes: 14 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ workflows:
jobs:
- php74-tests:
<<: *on_pr
- php81-tests:
<<: *on_pr
- frontend-tests:
<<: *on_pr
- acceptance-tests:
Expand Down Expand Up @@ -90,7 +92,7 @@ job-references:
command: |
mkdir -p /tmp/test-results/phpcs
vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs
vendor/bin/phpcs --report=junit --report-file=/tmp/test-results/phpcs/$CIRCLE_STAGE.xml
vendor/bin/phpcs -d error_reporting="E_ALL&~E_DEPRECATED" --report=junit --report-file=/tmp/test-results/phpcs/$CIRCLE_STAGE.xml
- run:
name: phpunit
when: always
Expand All @@ -100,7 +102,7 @@ job-references:
base=$(curl -s https://raw.githubusercontent.com/greenpeace/planet4-base/main/composer.json)
WP_VERSION=$(jq -r '.extra["wp-version"] // empty' \<<< "${base}")
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 $WP_VERSION
XDEBUG_MODE=coverage vendor/bin/phpunit --log-junit /tmp/test-results/phpunit/$CIRCLE_STAGE.xml --coverage-html /tmp/coverage-report --coverage-text
vendor/bin/phpunit --log-junit /tmp/test-results/phpunit/$CIRCLE_STAGE.xml
- store_test_results:
path: /tmp/test-results
- store_artifacts:
Expand Down Expand Up @@ -210,6 +212,16 @@ jobs:
auth:
<<: *docker_auth

php81-tests:
<<: *php_job
docker:
- image: greenpeaceinternational/p4-unit-tests:php8.1
auth:
<<: *docker_auth
- image: cimg/mysql:5.7
auth:
<<: *docker_auth

frontend-tests:
docker:
- image: greenpeaceinternational/p4-unit-tests:node14.19.3
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"squizlabs/php_codesniffer": "^3.5.8",
"wp-coding-standards/wpcs": "^2.2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"stevegrunwell/phpunit-markup-assertions": "^1.3",
"phpunit/phpunit": "^7.5",
"wpackagist-plugin/timber-library": "1.18.*",
"laminas/laminas-dom": "^2.12",
"phpunit/phpunit": "^7.5||^9.5",
"wpackagist-plugin/timber-library": "1.22.*",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
Expand Down
Loading