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

Allow PHP ^8.0, add Github Actions #20

Merged
merged 7 commits into from
May 7, 2021

Conversation

trejjam
Copy link
Contributor

@trejjam trejjam commented Apr 5, 2021

Hi,

this PR adds support for PHP 8.0 in composer.json. And it also replaces Travis with Github Actions (based on Contributte Actions).

@ondrejmirtes
Copy link
Contributor

(I'm not the owner of this repo)

Hi, you have a much higher chance of merging a PR if you create two separate ones, each for separate concern this PR includes.

@trejjam
Copy link
Contributor Author

trejjam commented Apr 5, 2021

Hi, thank you for the suggestion. I am aware of that. The reason why it is in single PR is the response time of the Travis CI (sometimes takes hours). The scope of Allow PHP ^8.0 is only in the composer.json, and Github Actions already has support for PHP 8.0 (with makes the change in the composer.json mandatory).

@trejjam
Copy link
Contributor Author

trejjam commented Apr 5, 2021

See Github Actions executed in the fork scope: trejjam/roave-no-floaters#1

Copy link

@joshuaslaney joshuaslaney left a comment

Choose a reason for hiding this comment

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

Copy link

@joshuaslaney joshuaslaney left a comment

Choose a reason for hiding this comment

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

@trejjam
Copy link
Contributor Author

trejjam commented Apr 30, 2021

@joshuaslaney, please stop. This is not how things works...

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Overall, it's a major improvement, and moves one of the last pending libraries off travis-ci, thanks @trejjam!

Checking builds, then merging :-)


strategy:
matrix:
php-version: ["7.4"]
Copy link
Member

Choose a reason for hiding this comment

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

IMO to be tested only with 8.0


strategy:
matrix:
php-version: ["7.4"]
Copy link
Member

Choose a reason for hiding this comment

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

IMO to be tested only with 8.0

.PHONY: install qa cs phpstan tests mutation-tests

install:
composer update
Copy link
Member

Choose a reason for hiding this comment

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

Should be composer install

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes sense. I totally overlooked it. Thank you for the review!

@@ -5,16 +5,16 @@
"MIT"
],
"require": {
"php": "^7.2",
"php": "^7.4 | ^8.0",
Copy link
Member

Choose a reason for hiding this comment

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

| is deprecated - should be ||

@Ocramius Ocramius self-assigned this May 7, 2021
@Ocramius Ocramius added the enhancement New feature or request label May 7, 2021
@Ocramius Ocramius added this to the 1.4.0 milestone May 7, 2021
@Ocramius Ocramius merged commit 0e96bca into Roave:master May 7, 2021
@trejjam trejjam deleted the feature/github-actions-php-8 branch July 10, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants