run tests on stable versions

This commit is contained in:
Khoubza Younes
2020-12-16 08:58:28 +01:00
parent 324d3b9b87
commit 1834d3aa70
+4 -7
View File
@@ -13,9 +13,6 @@ jobs:
fail-fast: true
matrix:
symfony: [5.2.*, 5.1.*, 5.0.*, 4.4.*, 4.3.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*, 2.8.*, 2.7.*]
dependency-version:
# - prefer-lowest
- prefer-stable
include:
- symfony: 5.2.*
php: 7.2
@@ -77,7 +74,7 @@ jobs:
php: 5.3
phpunit: 4.8.36
name: S${{ matrix.symfony }} - P${{ matrix.php }} - ${{ matrix.dependency-version }}
name: S${{ matrix.symfony }} - P${{ matrix.php }}
steps:
- name: Checkout code
@@ -98,9 +95,9 @@ jobs:
- name: Install dependencies
run: |
COMPOSER_MEMORY_LIMIT=-1 composer require "symfony/symfony:${{ matrix.symfony }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
COMPOSER_MEMORY_LIMIT=-1 composer config extra.symfony.require "${{ matrix.symfony }}"
COMPOSER_MEMORY_LIMIT=-1 composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
composer require "symfony/symfony:${{ matrix.symfony }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer config extra.symfony.require "${{ matrix.symfony }}"
composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit