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

Issues with PHP 8 PECL extensions when running locally #5

Closed
3 of 5 tasks
rodber opened this issue Dec 18, 2020 · 2 comments
Closed
3 of 5 tasks

Issues with PHP 8 PECL extensions when running locally #5

rodber opened this issue Dec 18, 2020 · 2 comments
Assignees

Comments

@rodber
Copy link

rodber commented Dec 18, 2020

Describe the bug
I'm having issues testing locally on Ubuntu 20.04 with act -P ubuntu-latest=shivammathur/node:latest (including other tags)

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
ubuntu-latest

PHP versions
8.0

To Reproduce

Clone this repo: https://github.com/rodolfoberrios/setup-php-test

Run nektos/act:

act -P ubuntu-latest=shivammathur/node:latest -W .github/workflows/v2-php8.yml

Expected behavior

It should allow to local test the github action just like running it from github.

Screenshots/Logs

❯ act -P ubuntu-latest=shivammathur/node:latest -W .github/workflows/v2-php8.yml
[PHP 8 no xdebug/build] 🚀  Start image=shivammathur/node:latest
[PHP 8 no xdebug/build]   🐳  docker run image=shivammathur/node:latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[PHP 8 no xdebug/build]   🐳  docker cp src=/home/rodolfo/git/rodolfoberrios/setup-php-test/. dst=/github/workspace
[PHP 8 no xdebug/build] ⭐  Run Checkout
[PHP 8 no xdebug/build]   ✅  Success - Checkout
[PHP 8 no xdebug/build] ⭐  Run Setup PHP Action
[PHP 8 no xdebug/build]   ☁  git clone 'https://github.com/shivammathur/setup-php' # ref=v2
[PHP 8 no xdebug/build]   🐳  docker cp src=/home/rodolfo/.cache/act/shivammathur-setup-php@v2 dst=/actions/
| [command]/bin/bash /opt/hostedtoolcache/linux.sh 8.0 /actions/shivammathur-setup-php@v2/dist
| 
| ==> Setup PHP
| ✓ PHP Found PHP 8.0.0
| 
| ==> Setup Tools
| ✓ composer Added composer 2.0.8
[PHP 8 no xdebug/build]   ❗  ::error::The process '/bin/bash' failed with exit code null
[PHP 8 no xdebug/build]   ❌  Failure - Setup PHP Action
Error: exit with `FAILURE`: 1

Additional context

I have a repo where the action executes successfully at GitHub, but in local only this workflow is working for me, the one that explicit install pear.

I tested this in two different Ubuntu 20.04 machines, I haven't tested in other OS at this time. I also tested tagging v1 (old syntax) and it works as expected.

Are you willing to submit a PR?

Not sure, I still don't have a clue on where's the issue.

@shivammathur shivammathur transferred this issue from shivammathur/setup-php Dec 18, 2020
@rodber
Copy link
Author

rodber commented Dec 18, 2020

Hi, I've updated the docker image following your instructions:

docker pull shivammathur/node:latest

And now ds works.

I've detected that imagick is also giving issues. I tested with and without imagemagick.

@shivammathur
Copy link
Owner

Fixed the pecl extensions issue in ee664c7
Fixed imagick in shivammathur/setup-php@b7d1d9c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants