-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade dependencies + code for 8.1 compatibility
- Loading branch information
Showing
22 changed files
with
101 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ jobs: | |
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest, macos-latest] #windows-latest currently not working | ||
php-versions: ['7.3', '7.4', '8.0'] | ||
php-versions: ['8.0', '8.1'] | ||
composer-options: ['', '--prefer-lowest'] | ||
composer-versions: ['composer:v1', 'composer:v2'] | ||
composer-versions: ['composer:v2'] | ||
fail-fast: false | ||
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-versions }} ${{ matrix.composer-options }} | ||
steps: | ||
|
@@ -36,7 +36,11 @@ jobs: | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install dependencies | ||
if: matrix.php-versions != '8.1' | ||
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} | ||
- name: Install dependencies (Ignore platform) | ||
if: matrix.php-versions == '8.1' | ||
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-req=php | ||
- name: Set git variables | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -47,3 +51,4 @@ jobs: | |
- name: Run the tests on unix | ||
if: runner.os != 'Windows' | ||
run: php vendor/bin/grumphp run --no-interaction | ||
continue-on-error: ${{ matrix.php-versions == '8.1' && matrix.composer-options == '--prefer-lowest' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,14 @@ shallow_clone: false | |
platform: | ||
- x64 | ||
|
||
matrix: | ||
allow_failures: | ||
- php_version: 8.0 | ||
#matrix: | ||
# allow_failures: | ||
# - php_version: 8.1 | ||
|
||
environment: | ||
matrix: | ||
- dependencies: highest | ||
php_version: 7.3 | ||
- dependencies: highest | ||
php_version: 7.4.3 # OpenSSL issue will be resolved in 7.4.6 | ||
php_version: 8.1 | ||
- dependencies: highest | ||
php_version: 8.0 | ||
|
||
|
@@ -33,13 +31,12 @@ cache: | |
|
||
init: | ||
- ps: $Env:php_directory = $Env:php_root_directory + '\' + $Env:php_version | ||
# TODO: This is a workaround for https://github.com/chocolatey/choco/issues/1843. Once this is fixed we | ||
# should go back to latest version in appveyor saving ourselves test time | ||
- ps: choco install chocolatey -y --version 0.10.13 --allow-downgrade | ||
- ps: $Env:exact_php_version = (((choco search php --exact --all --limit-output | Select-String -pattern $Env:php_version) -replace '[php|]', '') | %{ New-Object System.Version $_ } | Sort-Object | Select-Object -Last 1).ToString() | ||
- ps: $Env:PATH = $Env:php_directory + ';' + $Env:composer_directory + ';' + $Env:PATH | ||
- ps: $Env:COMPOSER_NO_INTERACTION = 1 | ||
- ps: $Env:ANSICON = '121x90 (121x90)' | ||
- ps: $Env:AMP_DEBUG = '1' | ||
|
||
install: | ||
# Install PHP | ||
|
@@ -68,8 +65,8 @@ install: | |
|
||
# Install dependencies | ||
- ps: cd $Env:project_directory | ||
- IF %dependencies%==lowest composer update --prefer-dist --prefer-lowest --prefer-stable --no-progress --no-scripts --no-suggest --profile | ||
- IF %dependencies%==highest composer update --prefer-dist --no-progress --no-scripts --no-suggest --profile | ||
- IF %dependencies%==lowest composer update --prefer-dist --prefer-lowest --prefer-stable --no-progress --no-scripts --no-suggest --profile --ignore-platform-req=php | ||
- IF %dependencies%==highest composer update --prefer-dist --no-progress --no-scripts --no-suggest --profile --ignore-platform-req=php | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "GrumPHP" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phive xmlns="https://phar.io/phive"> | ||
<phar name="psalm" version="^4.10.0" installed="4.10.0" location="./tools/psalm" copy="true"/> | ||
<phar name="phpcs" version="^3.5.5" installed="3.6.0" location="./tools/phpcs" copy="true"/> | ||
<phar name="phpcbf" version="^3.5.5" installed="3.6.0" location="./tools/phpcbf" copy="true"/> | ||
<phar name="composer-normalize" version="^2.6.1" installed="2.15.0" location="./tools/composer-normalize" copy="true"/> | ||
<phar name="psalm" version="^4.13.1" installed="4.13.1" location="./tools/psalm" copy="true"/> | ||
<phar name="phpcs" version="^3.6.1" installed="3.6.1" location="./tools/phpcs" copy="true"/> | ||
<phar name="phpcbf" version="^3.6.1" installed="3.6.1" location="./tools/phpcbf" copy="true"/> | ||
<phar name="composer-normalize" version="^2.16.0" installed="2.16.0" location="./tools/composer-normalize" copy="true"/> | ||
</phive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.