Skip to content

Commit

Permalink
Fix the usage of Composer plugins in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 9, 2022
1 parent 9e5f9e7 commit c695106
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-upcoming-symfony.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader || exit 0
vendor/bin/simple-phpunit install || exit 0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:

- name: 'Install project dependencies'
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
vendor/bin/simple-phpunit install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-lowest-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- name: 'Install project dependencies'
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest
vendor/bin/simple-phpunit install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- name: 'Install project dependencies'
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
vendor/bin/simple-phpunit install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-maintained-symfony.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader
vendor/bin/simple-phpunit install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-upcoming-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
env:
SYMFONY_REQUIRE: 5.4
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --ignore-platform-req=php
vendor/bin/simple-phpunit install
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:

- name: 'Install project dependencies'
run: |
composer config --global --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
vendor/bin/simple-phpunit install
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
"symfony/phpunit-bridge": "^5.4|^6.0"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"symfony/flex": true
}
"sort-packages": true
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit c695106

Please sign in to comment.