Closed szepeviktor closed 2 years ago
Hi there,
what is the advantage of changing code that is currently working perfectly? Please elaborate.
Best, Dennis
No, there is no advantage. It is just smaller and makes Composer work.
Actually there is: I'm learning GHA and Composer internals.
I'm a research-type guy, not a businessman/pioneer.
@dennisnissle If you are interested here is how use Composer only for PHPUnit-compat.
- name: Composer install
run: |
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
composer install
- name: Install compatibility-with-php8-to-phpunit-7
if: ${{ matrix.php == '8.0' }}
run: |
composer config --unset platform
composer config repositories.0 '{"type":"vcs","url":"https://github.com/woocommerce/phpunit.git"}'
composer require --dev --update-with-all-dependencies --ignore-platform-req=php 'phpunit/phpunit:dev-add-compatibility-with-php8-to-phpunit-7 as 7.5'
Let's give it a try! 🚀