Skip to content

Commit

Permalink
fix: symfony/flex plugin (#31)
Browse files Browse the repository at this point in the history
contributors: @MollocH
  • Loading branch information
cawolf authored Jul 22, 2022
1 parent d0a22d1 commit 1e78289
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 84 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
Tests/Functional/Scripts/downloadComposer.sh
composer config extra.symfony.require "${{ matrix.symfony }}"
composer config extra.symfony.allow-contrib true
composer config --no-plugins allow-plugins.symfony/flex true
# adds flex, suppress composer.lock
composer require symfony/flex --no-update
# create a lock file
Expand All @@ -60,7 +61,9 @@ jobs:
# clean up recipe generated files and folders
git clean -df
- name: execute unit tests
run: composer run-script quality
run: |
composer config --no-plugins allow-plugins.symfony/flex true
composer run-script quality
- name: upload coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -102,6 +105,7 @@ jobs:
Tests/Functional/Scripts/downloadComposer.sh
composer config extra.symfony.require "${{ matrix.symfony }}"
composer config extra.symfony.allow-contrib true
composer config --no-plugins allow-plugins.symfony/flex true
# adds flex, suppress composer.lock
composer require symfony/flex --no-update
# create a lock file
Expand All @@ -119,6 +123,8 @@ jobs:
- name: execute functional tests
env:
SYMFONY_VERSION: ${{ matrix.symfony }}
run: composer run-script phpunit-functional
run: |
composer config --no-plugins allow-plugins.symfony/flex true
composer run-script phpunit-functional
- name: show running containers
run: docker ps
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.2",
"squizlabs/php_codesniffer": "^3.6",
"phpmd/phpmd": "^2.11",
"phpmd/phpmd": "^2.12",
"php-coveralls/php-coveralls": "^2.5",
"symfony/filesystem": "*",
"symfony/process": "*",
Expand Down
Loading

0 comments on commit 1e78289

Please sign in to comment.