Skip to content

Commit

Permalink
Merge pull request #581 from alexislefebvre/restore-tests-on-lower-ve…
Browse files Browse the repository at this point in the history
…rsions

Restore test on lowest versions
  • Loading branch information
alexislefebvre authored Feb 26, 2021
2 parents 9797828 + d7bfe2e commit 436c03c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ on: [push, pull_request]

jobs:
tests:
name: Symfony ${{ matrix.symfony-version }} on PHP ${{ matrix.php-version }}
name: Symfony ${{ matrix.symfony-version }} on PHP ${{ matrix.php-version }} flags ${{ matrix.composer-flags }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version: ['7.2', '7.3', '7.4', '8.0']
composer-flags: ['']
symfony-version: ['5.1']
include:
- php-version: 7.2
symfony-version: "^4.4"
composer-flags: "--prefer-lowest"
- php-version: 7.2
symfony-version: "^4.4"
- php-version: 7.3
Expand Down Expand Up @@ -56,7 +60,13 @@ jobs:
composer require --no-update symfony/yaml=${{ matrix.symfony-version }}
- name: Install Composer dependencies
if: matrix.composer-flags == ''
run: composer install

- name: Install Composer dependencies with options
if: matrix.composer-flags != ''
# Use "update" instead of "install" since it allows using the "--prefer-lowest" option
run: composer update ${{ matrix.composer-flags }}

- name: Run tests
run: php ./vendor/bin/phpunit --testdox
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ cache:

matrix:
include:
- php: 7.2
env: SYMFONY_VERSION="4.4.*" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: SYMFONY_VERSION="4.4.*"
- php: 7.3
Expand Down
25 changes: 13 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@
"php": "^7.2 || ^8.0",
"doctrine/annotations": "^1.3",
"phpunit/phpunit": "^7.5.0 || ^8.0 || ^9.0",
"symfony/browser-kit": "^3.4 || ^4.4 || ^5.1",
"symfony/framework-bundle": "^3.4 || ^4.4 || ^5.1"
"symfony/browser-kit": "^4.4 || ^5.1",
"symfony/framework-bundle": "^4.4 || ^5.1"
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
"doctrine/orm": "^2.6.3",
"doctrine/doctrine-bundle": "^2.1",
"doctrine/orm": "^2.7",
"monolog/monolog": "~1.11",
"symfony/css-selector": "^3.4.33 || ^4.4 || ^5.1",
"symfony/form": "^3.4.33 || ^4.4 || ^5.1",
"symfony/http-kernel": "^3.4.33 || ^4.4 || ^5.1",
"symfony/css-selector": "^4.4 || ^5.1",
"symfony/doctrine-bridge": "^4.4 || ^5.1",
"symfony/form": "^4.4 || ^5.1",
"symfony/http-kernel": "^4.4 || ^5.1",
"symfony/monolog-bundle": "^3.4",
"symfony/phpunit-bridge": "^3.4.33 || ^4.4 || ^5.1",
"symfony/security-bundle": "^3.4.33 || ^4.4 || ^5.1",
"symfony/twig-bundle": "^3.4.33 || ^4.4 || ^5.1",
"symfony/validator": "^3.4.33 || ^4.4 || ^5.1",
"symfony/yaml": "^3.4.33 || ^4.4 || ^5.1",
"symfony/phpunit-bridge": "^4.4 || ^5.1",
"symfony/security-bundle": "^4.4 || ^5.1",
"symfony/twig-bundle": "^4.4 || ^5.1",
"symfony/validator": "^4.4 || ^5.1",
"symfony/yaml": "^4.4 || ^5.1",
"twig/twig": "^2.0 || ^3.0"
},
"conflict": {
Expand Down

0 comments on commit 436c03c

Please sign in to comment.