From 2bf6b6dd2c635d2295e829e5f0a3180a40d4728b Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Mon, 1 Aug 2022 08:30:41 +0100 Subject: [PATCH] allow plugin in composer.json --- .github/workflows/build.yml | 4 +--- composer.json | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e87544..0657d26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,9 +32,7 @@ jobs: key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- - name: Install dependencies - run: | - composer config --no-plugins allow-plugins.yiisoft/yii2-composer true - composer update $DEFAULT_COMPOSER_FLAGS + run: composer update $DEFAULT_COMPOSER_FLAGS - name: Run unit tests with coverage run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always if: matrix.php == '7.4' diff --git a/composer.json b/composer.json index 2c0251a..3e666fe 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,11 @@ "suggest": { "twbs/bootstrap-icons": "Add this package to the `require` section of your `composer.json` if you'd like to use the bootstrap icon asset." }, + "config": { + "allow-plugins": { + "yiisoft/yii2-composer": true + } + }, "repositories": [ { "type": "composer",