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

upkeep/148: add php8 compatibility workflow #144

Merged
merged 22 commits into from
Apr 8, 2022
Merged

Conversation

Sidsector9
Copy link
Member

@Sidsector9 Sidsector9 commented Feb 18, 2022

Description of the Change

The plugin's dependency on abraham/twitteroauth:1.2.0 is not compatible with PHP 8.0. To make it compatible, I've upgraded the dependency to the immediate next version of 2.0.0. Beyond 2.0.0, it drops support for PHP 7.2.

phpunit/phpunit is upgraded to version 9.5.x-dev

Separate Github workflows for each test:

  • PHP Compatibility for minimum PHP 5.6 and above
  • PHPCS
  • ESLint
  • Added badges for the above and PHPUnit to the README file

Screen Shot 2022-03-23 at 5 20 47 PM

Closes #148

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Credits

Props @

@Sidsector9 Sidsector9 marked this pull request as ready for review March 23, 2022 11:47
@Sidsector9 Sidsector9 requested review from a team and faisal-alvi and removed request for a team March 23, 2022 11:47
@Sidsector9 Sidsector9 changed the title php8 compatibility upkeep/148: add php8 compatibility workflow Mar 23, 2022
README.md Outdated
Comment on lines 6 to 9
![ESLint](https://github.com/sidsector9/autoshare-for-twitter/actions/workflows/eslint.yml/badge.svg)
![PHPCompatibility](https://github.com/sidsector9/autoshare-for-twitter/actions/workflows/php-compatibility.yml/badge.svg)
![PHPCS](https://github.com/sidsector9/autoshare-for-twitter/actions/workflows/phpcs.yml/badge.svg)
![PHPUnit](https://github.com/sidsector9/autoshare-for-twitter/actions/workflows/phpunit.yml/badge.svg)
Copy link
Member

Choose a reason for hiding this comment

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

The paths are coming from the forked repo. Can you please change it?

Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

Looks good, just a minor request added above.

@Sidsector9 Sidsector9 requested a review from faisal-alvi March 27, 2022 09:53
Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@Sidsector9 Code LGTM! However, I noticed,

  1. A "PHP Compatibility" Github Action is failing.
  2. The "test_php" tests are still in waiting mode. The wait is from Github and not in our control? or do we have to change something?

image
image link

@iamdharmesh iamdharmesh mentioned this pull request Apr 1, 2022
19 tasks
@jeffpaul jeffpaul requested a review from faisal-alvi April 6, 2022 14:05
faisal-alvi
faisal-alvi previously approved these changes Apr 7, 2022
@iamdharmesh iamdharmesh merged commit f745125 into develop Apr 8, 2022
@iamdharmesh iamdharmesh deleted the php8-compat branch April 8, 2022 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

PHP8 Compatibility testing
4 participants