Closed vielhuber closed 10 months ago
Hi @vielhuber ,
Good question! I will look into this with you. The PHPUnit executable runs inside php-build, which runs the cli-alpine
flavour of the official PHP container. The version of the cli-alphine image depends on what version of PHP you request in your YML, and defaults to latest
- you can replicate the environment locally by running this: docker run --rm -it php:8.2-cli-alpine /bin/bash
I'll do some testing and report back here when I have a proposed solution.
I'm sure that's normally a good choice. Is it possible to use a standard ubuntu build inside the php container instead of cli-alpine?
Not currently possible, but if there's any issues this approach is causing, and an alternative can help you and others, we can look into how that can be accomplished. Alpine is currently used because it's the official image, and it's so much more lightweight than something like Ubuntu.
Hello!
My tests are failing because
ubuntu-latest
seems not to provide current versions of coreutils likesplit
ordiff
when executing viaexec
inside a phpunit test.When I add this to my yml file, I get:
This seems correct.
But when I call
shell_exec('split --help')
or evenshell_exec('/usr/bin/split --help')
I get another version ofsplit
(a very minimal one with only a few command line arguments):How am I able to use the normal versions of
split
anddiff
inside php viaexec
in my GitHub Actions?