-
Notifications
You must be signed in to change notification settings - Fork 68
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
Upgrade docker image to PHP 8.1 #9146
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: -3 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @achyuthajoy!
I'm not able to run npm run test:php-coverage
successfully locally, it results in failure after 2074 / 2190 ( 94%)
, and it seems it is consistent in my case. Did you check if it's working on your end?
Also, considering the docker container now runs on PHP 8.1, should we update the test matrix from the Coverage workflow to reflect this? As it still declares PHP 7.4:
https://github.com/Automattic/woocommerce-payments/blob/trunk/.github/workflows/coverage.yml#L20
@alopezari Works fine for me. |
@alopezari Sure we can update the matrix. But not for every workflow because we still want to support PHP 7.3 and above. |
Yes! I know. I only meant the matrix from the workflow I linked in my message because it only declares PHP 7.4 where the docker container is setting up 8.1. Actually that matrix only defines 1 PHP version so I think it's purpose is labelling instead of setting multiple configurations. |
Fixed in 0ee9afe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #9092
Changes proposed in this Pull Request
Testing instructions
brew install [email protected]
or using https://github.com/shivammathur/homebrew-php.npm install
to install dependencies.npm run up
to spin up docker containers with the new image.npm run cli
to connect to docker shell and runphp --version
to confirm the PHP version as 8.1npm run build
npm run test
npm run test:php-coverage
npm run lint:php
npm run psalm
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge