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') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer- restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies - name: Install dependencies
run: | run: composer update $DEFAULT_COMPOSER_FLAGS
composer config --no-plugins allow-plugins.yiisoft/yii2-composer true
composer update $DEFAULT_COMPOSER_FLAGS
- name: Run unit tests with coverage - name: Run unit tests with coverage
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always
if: matrix.php == '7.4' if: matrix.php == '7.4'

View File

@ -37,6 +37,11 @@
"suggest": { "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." "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": [ "repositories": [
{ {
"type": "composer", "type": "composer",