diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 34938ccf..6e2bb39e 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -53,8 +53,8 @@ jobs: key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ github.sha }} restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}- - - name: Composer v2 - run: sudo composer self-update --2 + - name: Update composer + run: sudo composer self-update - name: Composer Github Auth run: composer config -g github-oauth.github.com ${{ github.token }} @@ -72,6 +72,7 @@ jobs: - name: Setup some requirements working-directory: ./sylius run: | + composer config --no-plugins allow-plugins true composer config repositories.plugin '{"type": "path", "url": "../plugin/"}' composer config extra.symfony.allow-contrib true composer config secure-http false diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fc1829f6..57889c45 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -46,10 +46,9 @@ jobs: restore-keys: composer2-php:${{ matrix.php }}- - run: mkdir -p /home/runner/{.composer/cache,.config/composer} - if: steps.cache-composer.outputs.cache-hit != 'true' - - name: Composer v2 - run: sudo composer self-update --2 + - name: Update composer + run: sudo composer self-update - name: Composer Github Auth run: composer config -g github-oauth.github.com ${{ github.token }} diff --git a/Makefile b/Makefile index aed44abd..39060f3c 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,7 @@ setup_application: (cd ${APP_DIR} && ${COMPOSER} config repositories.plugin '{"type": "path", "url": "../../"}') (cd ${APP_DIR} && ${COMPOSER} config extra.symfony.allow-contrib true) (cd ${APP_DIR} && ${COMPOSER} config minimum-stability dev) + (cd ${APP_DIR} && ${COMPOSER} config --no-plugins allow-plugins true) (cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress sylius/sylius="~${SYLIUS_VERSION}") # Make sure to install the required version of sylius because the sylius-standard has a soft constraint $(MAKE) ${APP_DIR}/.php-version ${APP_DIR}/php.ini (cd ${APP_DIR} && ${COMPOSER} install --no-interaction)