Skip to content

Commit

Permalink
upgrade test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpozzi committed Dec 18, 2023
1 parent 8648bff commit 32e2bfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ jobs:
- description: 'Symfony 5.0'
php: '8.3'
symfony: '5.0.*'
- description: 'Dev deps'
php: '8.3'
symfony: '7.0.*'
dev: true
- description: 'Beta deps'
php: '8.1'
beta: true
- description: 'Lowest deps'
php: '8.1'
composer_option: '--prefer-lowest'
Expand All @@ -48,10 +47,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- run: |
phpenv config-rm xdebug.ini || true
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex 1.*
- name: Cache
uses: actions/cache@v3
with:
Expand All @@ -64,7 +59,9 @@ jobs:
- run: |
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
if: matrix.symfony
- run: composer config minimum-stability dev && composer config prefer-stable true
if: matrix.dev
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/simple-phpunit -v
- run: |
composer config minimum-stability dev
composer config prefer-stable true
if: matrix.beta
- run: composer update --prefer-dist --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
- run: vendor/bin/phpunit
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@
}
},
"require-dev": {
"symfony/asset": "^5.1|^6.0|^7.0",
"symfony/finder": "^5.1|^6.0|^7.0",
"symfony/phpunit-bridge": "^5.1|^6.0|^7.0",
"symfony/security-csrf": "^5.1|^6.0|^7.0",
"symfony/validator": "^5.1|^6.0|^7.0",
"phpunit/phpunit": "^10.5",
"symfony/yaml": "^5.1|^6.0|^7.0"
}
}

0 comments on commit 32e2bfb

Please sign in to comment.