Fix actions on PHP 8.0

main
Graham Campbell 4 years ago committed by Jordi Boggiano
parent a1c731b552
commit 1a2fea3509
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -38,31 +38,31 @@ jobs:
os: [ubuntu-latest] os: [ubuntu-latest]
experimental: [false] experimental: [false]
include: include:
- php-version: 5.3 - php-version: "5.3"
dependencies: highest dependencies: highest
os: ubuntu-latest os: ubuntu-latest
experimental: false experimental: false
- php-version: 5.3 - php-version: "5.3"
dependencies: lowest dependencies: lowest
os: ubuntu-latest os: ubuntu-latest
experimental: false experimental: false
- php-version: 7.4 - php-version: "7.4"
dependencies: highest dependencies: highest
os: ubuntu-latest os: ubuntu-latest
experimental: false experimental: false
- php-version: 7.4 - php-version: "7.4"
os: windows-latest os: windows-latest
dependencies: locked dependencies: locked
experimental: false experimental: false
- php-version: 7.4 - php-version: "7.4"
os: macos-latest os: macos-latest
dependencies: locked dependencies: locked
experimental: false experimental: false
- php-version: 8.0 - php-version: "8.0"
dependencies: lowest-ignore dependencies: lowest-ignore
os: ubuntu-latest os: ubuntu-latest
experimental: true experimental: true
- php-version: 8.0 - php-version: "8.0"
dependencies: highest-ignore dependencies: highest-ignore
os: ubuntu-latest os: ubuntu-latest
experimental: true experimental: true
@ -83,7 +83,7 @@ jobs:
elif [ "${{ matrix.php-version }}" = "7.1" ]; then elif [ "${{ matrix.php-version }}" = "7.1" ]; then
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::7.5"; echo "::set-env name=SYMFONY_PHPUNIT_VERSION::7.5";
elif [ "${{ matrix.php-version }}" = "8.0" ]; then elif [ "${{ matrix.php-version }}" = "8.0" ]; then
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::9.2"; echo "::set-env name=SYMFONY_PHPUNIT_VERSION::9.3";
else else
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::8.3"; echo "::set-env name=SYMFONY_PHPUNIT_VERSION::8.3";
fi fi
@ -96,14 +96,6 @@ jobs:
ini-values: "memory_limit=-1, phar.readonly=0" ini-values: "memory_limit=-1, phar.readonly=0"
php-version: "${{ matrix.php-version }}" php-version: "${{ matrix.php-version }}"
- name: "Update to latest Composer snapshot"
if: "!startsWith(matrix.os, 'windows')"
run: "sudo -i composer self-update --snapshot"
- name: "Update to latest Composer snapshot on Windows"
if: "startsWith(matrix.os, 'windows')"
run: "composer self-update --snapshot"
- name: "Determine composer cache directory" - name: "Determine composer cache directory"
id: "determine-composer-cache-directory" id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\"" run: "echo \"::set-output name=directory::$(composer config cache-dir)\""
@ -136,12 +128,10 @@ jobs:
- name: "Require latest PHPUnitBridge for PHP 8" - name: "Require latest PHPUnitBridge for PHP 8"
if: "matrix.php-version == '8.0'" if: "matrix.php-version == '8.0'"
run: | run: composer require --no-update --dev symfony/phpunit-bridge:5.1.*@dev
composer require --no-update --dev symfony/phpunit-bridge:^5.1
composer config -g platform-check false
- 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 Symfony's PHPUnitBridge to latest available for the current PHP always as it is not really a dependency of the project"
run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge" run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge --with-all-dependencies"
- 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 }}"

Loading…
Cancel
Save