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

Use GitHub actions for continuous integration (CI) #97

Merged
merged 3 commits into from
Mar 31, 2021
Merged

Conversation

SimonFrings
Copy link
Contributor

@SimonFrings SimonFrings commented Mar 30, 2021

Bye bye Travis CI, you've served us well.

I've built a little workaround for some tests for legacy PHP. When using recursion there is always the risk of reaching a full stack which results in PHP failing hard. Therefore the max_nesting_level setting from Xdebug (to prevent reaching this point) was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP. In 2015 this setting was changed to 256 for PHP Versions > 5.4. For more details look into Xdebug#1100

This code supports running tests on PHP 8.

$ docker run -it --rm -v `pwd`:/data --workdir=/data php:8.0.0 php vendor/bin/phpunit
PHPUnit 9.5.4 by Sebastian Bergmann and contributors.

...............................................................  63 / 118 ( 53%)
.......................................................         118 / 118 (100%)

Time: 00:03.362, Memory: 10.00 MB

OK (118 tests, 328 assertions)

Builds on top of #96 reactphp/reactphp#442.

Bye bye Travis CI, you've served us well
Copy link
Owner

@clue clue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonFrings Thanks for the update, changes LGTM! :shipit:

@clue clue added this to the v1.3.0 milestone Mar 31, 2021
@clue clue merged commit 5cc99a1 into clue:master Mar 31, 2021
@clue clue mentioned this pull request Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants