From 0b8822c24dce624b8e8fe2ddcb826a4b3de4d1e0 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Wed, 21 Jul 2021 16:36:34 +0300 Subject: [PATCH 1/2] Fix GitHub Actions failure --- .github/workflows/php.yml | 44 +++++---- composer.json | 2 +- composer.lock | 189 +++++++++++++++++++++++++++++++++++++- 3 files changed, 214 insertions(+), 21 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a9dacf6..ee71bc7 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -2,42 +2,50 @@ name: CI on: push: - branches: [ master, develop ] + branches: [ develop ] pull_request: - branches: [ master, develop ] + branches: [ develop ] jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: + - "7.2" + - "7.3" + - "7.4" + dependencies: + - "lowest" + - "highest" + name: Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies steps: - uses: actions/checkout@v2 - - name: Update PHP - run: sudo update-alternatives --set php /usr/bin/php7.4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + env: + COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Validate composer run: composer validate - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 + - name: Composer install + uses: "ramsey/composer-install@v1" with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-source --no-interaction + dependency-versions: "${{ matrix.dependencies }}" + composer-options: "${{ matrix.composer-options }}" - name: Run unit tests suite - run: php vendor/bin/phpunit --configuration tests/Unit/phpunit.xml.dist + run: vendor/bin/phpunit --configuration tests/Unit/phpunit.xml.dist - name: Run code style suite - run: php vendor/bin/phpcs --standard=psr12 src/ --ignore=*.min.css + run: vendor/bin/phpcs --standard=psr12 src/ --ignore=*.min.css - name: Run tests code style - run: php vendor/bin/phpcs --standard=psr12 tests/ --ignore=/_files/ -n + run: vendor/bin/phpcs --standard=psr12 tests/ --ignore=/_files/ -n diff --git a/composer.json b/composer.json index ccecfea..1ecf068 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require-dev": { "phpunit/phpunit": "^6.5.0", "ext-dom": "*", - "squizlabs/php_codesniffer": "^3.5" + "squizlabs/php_codesniffer": "^3.5.1" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index db759c0..26d680b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f1653344271daf4dc2411465b9cc6744", + "content-hash": "9aad41d1cf619fea4df7519965b77062", "packages": [ { "name": "hassankhan/config", @@ -62,6 +62,10 @@ "yaml", "yml" ], + "support": { + "issues": "https://github.com/hassankhan/config/issues", + "source": "https://github.com/hassankhan/config/tree/2.2.0" + }, "time": "2020-12-07T16:04:15+00:00" }, { @@ -114,6 +118,10 @@ "parser", "php" ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.6.0" + }, "time": "2020-07-02T17:12:47+00:00" }, { @@ -161,6 +169,10 @@ "MIT" ], "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/master" + }, "time": "2019-06-07T19:13:52+00:00" }, { @@ -210,6 +222,10 @@ "container-interop", "psr" ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/master" + }, "time": "2017-02-14T16:28:37+00:00" }, { @@ -262,6 +278,11 @@ "uri", "url" ], + "support": { + "forum": "https://groups.google.com/group/sabredav-discuss", + "issues": "https://github.com/sabre-io/uri/issues", + "source": "https://github.com/fruux/sabre-uri" + }, "time": "2020-10-03T10:33:23+00:00" }, { @@ -326,6 +347,11 @@ "dom", "xml" ], + "support": { + "forum": "https://groups.google.com/group/sabredav-discuss", + "issues": "https://github.com/sabre-io/xml/issues", + "source": "https://github.com/fruux/sabre-xml" + }, "time": "2020-10-03T10:08:14+00:00" }, { @@ -398,6 +424,9 @@ ], "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/console/tree/v4.4.19" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -474,6 +503,9 @@ "polyfill", "portable" ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -551,6 +583,9 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -627,6 +662,9 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.22.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -707,6 +745,9 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -783,6 +824,9 @@ "interoperability", "standards" ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/master" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -851,6 +895,9 @@ ], "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v4.4.19" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -914,6 +961,10 @@ "keywords": [ "finder" ], + "support": { + "issues": "https://github.com/tomzx/finder/issues", + "source": "https://github.com/tomzx/finder/tree/v0.1.0" + }, "time": "2016-01-24T06:21:12+00:00" }, { @@ -974,6 +1025,10 @@ "semantic versioning", "semver" ], + "support": { + "issues": "https://github.com/tomzx/php-semver-checker/issues", + "source": "https://github.com/tomzx/php-semver-checker/tree/v0.14.0" + }, "time": "2020-04-17T04:34:42+00:00" }, { @@ -1035,6 +1090,9 @@ "php", "stylesheet" ], + "support": { + "source": "https://github.com/wikimedia/less.php/tree/1.8.2" + }, "time": "2019-11-06T18:30:11+00:00" }, { @@ -1081,6 +1139,14 @@ "stdlib", "zf" ], + "support": { + "docs": "https://docs.zendframework.com/zend-stdlib/", + "forum": "https://discourse.zendframework.com/c/questions/components", + "issues": "https://github.com/zendframework/zend-stdlib/issues", + "rss": "https://github.com/zendframework/zend-stdlib/releases.atom", + "slack": "https://zendframework-slack.herokuapp.com", + "source": "https://github.com/zendframework/zend-stdlib" + }, "abandoned": "laminas/laminas-stdlib", "time": "2018-08-28T21:34:05+00:00" } @@ -1135,6 +1201,10 @@ "constructor", "instantiate" ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + }, "funding": [ { "url": "https://www.doctrine-project.org/sponsorship.html", @@ -1197,6 +1267,10 @@ "object", "object graph" ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + }, "funding": [ { "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", @@ -1258,6 +1332,10 @@ } ], "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/master" + }, "time": "2017-03-05T18:14:27+00:00" }, { @@ -1305,6 +1383,10 @@ } ], "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/master" + }, "time": "2017-03-05T17:38:23+00:00" }, { @@ -1354,6 +1436,10 @@ "reflection", "static analysis" ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + }, "time": "2020-06-27T09:03:43+00:00" }, { @@ -1406,6 +1492,10 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + }, "time": "2020-09-03T19:13:55+00:00" }, { @@ -1451,6 +1541,10 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + }, "time": "2020-09-17T18:55:26+00:00" }, { @@ -1514,6 +1608,10 @@ "spy", "stub" ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" + }, "time": "2020-03-05T15:02:03+00:00" }, { @@ -1577,6 +1675,10 @@ "testing", "xunit" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/5.3" + }, "time": "2018-04-06T15:36:58+00:00" }, { @@ -1624,6 +1726,11 @@ "filesystem", "iterator" ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" + }, "time": "2017-11-27T13:52:08+00:00" }, { @@ -1665,6 +1772,10 @@ "keywords": [ "template" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, "time": "2015-06-21T13:50:34+00:00" }, { @@ -1714,6 +1825,10 @@ "keywords": [ "timer" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + }, "time": "2017-02-26T11:10:40+00:00" }, { @@ -1763,6 +1878,10 @@ "keywords": [ "tokenizer" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + }, "abandoned": true, "time": "2017-11-27T05:48:46+00:00" }, @@ -1848,6 +1967,10 @@ "testing", "xunit" ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/6.5.14" + }, "time": "2019-02-01T05:22:47+00:00" }, { @@ -1907,6 +2030,10 @@ "mock", "xunit" ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", + "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/5.0.10" + }, "abandoned": true, "time": "2018-08-09T05:50:03+00:00" }, @@ -1953,6 +2080,10 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + }, "funding": [ { "url": "https://github.com/sebastianbergmann", @@ -2023,6 +2154,10 @@ "compare", "equality" ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/master" + }, "time": "2018-02-01T13:46:46+00:00" }, { @@ -2075,6 +2210,10 @@ "keywords": [ "diff" ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/master" + }, "time": "2017-08-03T08:09:46+00:00" }, { @@ -2125,6 +2264,10 @@ "environment", "hhvm" ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/master" + }, "time": "2017-07-01T08:51:00+00:00" }, { @@ -2192,6 +2335,10 @@ "export", "exporter" ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.3" + }, "funding": [ { "url": "https://github.com/sebastianbergmann", @@ -2249,6 +2396,10 @@ "keywords": [ "global state" ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/2.0.0" + }, "time": "2017-04-27T15:39:26+00:00" }, { @@ -2296,6 +2447,10 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + }, "funding": [ { "url": "https://github.com/sebastianbergmann", @@ -2347,6 +2502,10 @@ ], "description": "Allows reflection of object attributes, including inherited and non-public ones", "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + }, "funding": [ { "url": "https://github.com/sebastianbergmann", @@ -2406,6 +2565,10 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + }, "funding": [ { "url": "https://github.com/sebastianbergmann", @@ -2454,6 +2617,11 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/master" + }, + "abandoned": true, "time": "2015-07-28T20:34:47+00:00" }, { @@ -2497,6 +2665,10 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, "time": "2016-10-03T07:35:21+00:00" }, { @@ -2548,6 +2720,11 @@ "phpcs", "standards" ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, "time": "2020-10-23T02:01:07+00:00" }, { @@ -2588,6 +2765,10 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/master" + }, "funding": [ { "url": "https://github.com/theseer", @@ -2643,6 +2824,10 @@ "check", "validate" ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" + }, "time": "2020-07-08T17:02:28+00:00" } ], @@ -2658,5 +2843,5 @@ "platform-dev": { "ext-dom": "*" }, - "plugin-api-version": "1.1.0" + "plugin-api-version": "2.0.0" } From 3133ea1afb6a6ff7a9dae956c05f77d32779766e Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Fri, 30 Jul 2021 09:00:23 +0300 Subject: [PATCH 2/2] Fix GitHub Actions failure Remove PHP 7.2 support --- .github/workflows/php.yml | 1 - composer.json | 2 +- composer.lock | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ee71bc7..0f21bd9 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -14,7 +14,6 @@ jobs: fail-fast: false matrix: php-version: - - "7.2" - "7.3" - "7.4" dependencies: diff --git a/composer.json b/composer.json index 1ecf068..ad2b2ea 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ ], "bin": ["bin/svc"], "require": { - "php": "~7.2.29||~7.3.0||~7.4.0", + "php": "~7.3.0||~7.4.0", "ext-json": "*", "phpstan/phpdoc-parser": "^0.3.5", "symfony/console": "~4.1.0||~4.4.0", diff --git a/composer.lock b/composer.lock index 26d680b..7199f64 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9aad41d1cf619fea4df7519965b77062", + "content-hash": "9e49b8dbd415fbf5b7cdadc3483c6a81", "packages": [ { "name": "hassankhan/config", @@ -2837,7 +2837,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~7.2.29||~7.3.0||~7.4.0", + "php": "~7.3.0||~7.4.0", "ext-json": "*" }, "platform-dev": {