allow plugin in composer.json

This commit is contained in:
Mehdi Achour 2022-08-01 08:30:41 +01:00
parent de22469954
commit 2bf6b6dd2c
2 changed files with 6 additions and 3 deletions

View File

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

View File

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