From c98419a0f1ac4189b254fc72ddc17b2243bf7739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 6 Jun 2023 15:29:19 +0200 Subject: [PATCH] Work around broken composer install for legacy PHP on Windows --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43e3b8d..c368090 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: php-version: ${{ matrix.php }} coverage: xdebug ini-file: development + - run: composer config secure-http false && composer config repo.packagist composer http://packagist.org && composer config preferred-install source + if: ${{ matrix.php < 5.5 && matrix.os == 'windows-2022' }} # legacy PHP on Windows is allowed to use insecure downloads until it will be removed again - run: composer install - run: vendor/bin/phpunit --coverage-text if: ${{ matrix.php >= 7.3 }}