1
0
Fork 0

Bump CI versions

pull/9735/head
Jordi Boggiano 2021-02-23 16:49:29 +01:00
parent 3bb10f2c9b
commit e1570798cd
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 11 additions and 28 deletions

View File

@ -12,7 +12,6 @@ env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
COMPOSER_UPDATE_FLAGS: "" COMPOSER_UPDATE_FLAGS: ""
COMPOSER_TESTS_ARE_RUNNING: "1" COMPOSER_TESTS_ARE_RUNNING: "1"
SYMFONY_PHPUNIT_VERSION: "8.5"
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1" SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: "1"
jobs: jobs:
@ -34,6 +33,7 @@ jobs:
- "7.2" - "7.2"
- "7.3" - "7.3"
- "7.4" - "7.4"
- "8.0"
dependencies: [locked] dependencies: [locked]
os: [ubuntu-latest] os: [ubuntu-latest]
experimental: [false] experimental: [false]
@ -46,23 +46,23 @@ jobs:
dependencies: lowest dependencies: lowest
os: ubuntu-latest os: ubuntu-latest
experimental: false experimental: false
- php-version: "7.4" - php-version: "8.0"
dependencies: highest dependencies: highest
os: ubuntu-latest os: ubuntu-latest
experimental: false experimental: false
- php-version: "7.4" - php-version: "7.4" # 8.0 fails to start the test suite for some reason on windows
os: windows-latest os: windows-latest
dependencies: locked dependencies: locked
experimental: false experimental: false
- php-version: "7.4" - php-version: "8.0"
os: macos-latest os: macos-latest
dependencies: locked dependencies: locked
experimental: false experimental: false
- php-version: "8.0" - php-version: "8.1"
dependencies: lowest-ignore dependencies: lowest-ignore
os: ubuntu-latest os: ubuntu-latest
experimental: true experimental: true
- php-version: "8.0" - php-version: "8.1"
dependencies: highest-ignore dependencies: highest-ignore
os: ubuntu-latest os: ubuntu-latest
experimental: true experimental: true
@ -71,23 +71,6 @@ jobs:
- name: "Checkout" - name: "Checkout"
uses: "actions/checkout@v2" uses: "actions/checkout@v2"
- name: "Choose PHPUnit version"
if: "!startsWith(matrix.os, 'windows')"
run: |
if [ "${{ matrix.php-version }}" = "5.3" ] || [ "${{ matrix.php-version }}" = "5.4" ] || [ "${{ matrix.php-version }}" = "5.5" ]; then
echo "SYMFONY_PHPUNIT_VERSION=4.8" >> $GITHUB_ENV;
elif [ "${{ matrix.php-version }}" = "5.6" ]; then
echo "SYMFONY_PHPUNIT_VERSION=5.7" >> $GITHUB_ENV;
elif [ "${{ matrix.php-version }}" = "7.0" ]; then
echo "SYMFONY_PHPUNIT_VERSION=6.5" >> $GITHUB_ENV;
elif [ "${{ matrix.php-version }}" = "7.1" ]; then
echo "SYMFONY_PHPUNIT_VERSION=7.5" >> $GITHUB_ENV;
elif [ "${{ matrix.php-version }}" = "8.0" ]; then
echo "SYMFONY_PHPUNIT_VERSION=9.4" >> $GITHUB_ENV;
else
echo "SYMFONY_PHPUNIT_VERSION=8.5" >> $GITHUB_ENV;
fi
- name: "Install PHP" - name: "Install PHP"
uses: "shivammathur/setup-php@v2" uses: "shivammathur/setup-php@v2"
with: with:
@ -116,12 +99,12 @@ jobs:
if: "matrix.dependencies == 'locked'" if: "matrix.dependencies == 'locked'"
run: "composer install ${{ env.COMPOSER_FLAGS }}" run: "composer install ${{ env.COMPOSER_FLAGS }}"
- name: "Require latest PHPUnitBridge for PHP 8" - name: "Require latest PHPUnitBridge for PHP 8.x"
if: "matrix.php-version == '8.0'" if: "startsWith(matrix.php-version, '8.')"
run: composer require --no-update --dev symfony/phpunit-bridge:^5.1 run: composer require --no-update --dev symfony/phpunit-bridge:^5.2
- name: "Update Symfony's PHPUnitBridge to latest available for the current PHP always as it is not really a dependency of the project" - name: "Update dev requirements to latest available for the current PHP even on locked builds as they are not bundled dependencies"
run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge" run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge phpspec/prophecy phpdocumentor/* sebastian/* doctrine/instantiator"
- name: "Run install again using composer binary from source" - name: "Run install again using composer binary from source"
run: "bin/composer install ${{ env.COMPOSER_FLAGS }}" run: "bin/composer install ${{ env.COMPOSER_FLAGS }}"