From 7c4a9820b41cdb6e08b262212093a8d962e540d8 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 1 Dec 2020 10:32:01 +0100 Subject: [PATCH] Use composer v1 in CI Not all dev dependencies are v2 ready. maglnet/composer-require-checker has a dependency to ocramius/package-versions version which requires v1 composer API. Once a newer version is required, we can use v2. --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c67e1e0..5b79d8c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -70,6 +70,9 @@ jobs: restore-keys: | ${{ runner.os }}-composer- + - name: Keep composer v1 until all dev dependencies are v2 ready + run: sudo composer selfupdate --1 + - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest --no-plugins @@ -139,6 +142,9 @@ jobs: restore-keys: | ${{ runner.os }}-composer- + - name: Keep composer v1 until all dev dependencies are v2 ready + run: sudo composer selfupdate --1 + - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest