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.
This commit is contained in:
Daniel Siepmann 2020-12-01 10:32:01 +01:00
parent 3f9c078395
commit 7c4a9820b4
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -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