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

Migrate CI from travis to GH action for 2.x #1475

Merged
merged 5 commits into from
Sep 6, 2023

Conversation

koriym
Copy link

@koriym koriym commented Sep 6, 2023

Test using PHP 7.2 to 8.3 with GH actions.

composer.json Outdated
@@ -34,7 +34,7 @@
},
"require-dev": {
"squizlabs/php_codesniffer": ">=2.7",
"phpunit/phpunit": "^8 || ^9"
"phpunit/phpunit": "^8.5.23 || ^9"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do things really break with earlier 8.x versions?

Copy link
Author

@koriym koriym Sep 6, 2023

Choose a reason for hiding this comment

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

With PHP 8.1 and phpunit ^8

PHP Fatal error:  Cannot acquire reference to $GLOBALS in /Users/akihito/git/swagger-php/vendor/phpunit/phpunit/src/Util/Configuration.php on line 407

with PHP 8.1 and phpunit ^8.5.20

PHP Fatal error:  During inheritance of IteratorAggregate: Uncaught Return type of Symfony\Component\Finder\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

/Users/akihito/git/swagger-php/vendor/symfony/finder/Finder.php:557

Then I found this advise at stackoverflow. And I set ^8.5.23 and see problem gone.

At this point I didn't think I needed to explore the exact version, but after receiving your comment I tried several times changing the values. Then I found that it seems that the current state of this project is error free at ^8.5.21.

@DerManoMann DerManoMann merged commit 261a0dd into zircote:2.x Sep 6, 2023
@DerManoMann
Copy link
Collaborator

Nice one! Thanks @koriym

@koriym koriym deleted the gh_action branch September 7, 2023 06:30
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

Successfully merging this pull request may close these issues.

2 participants