diff --git a/.github/workflows/static-analyze.yml b/.github/workflows/static-analyze.yml new file mode 100644 index 0000000..e3479cc --- /dev/null +++ b/.github/workflows/static-analyze.yml @@ -0,0 +1,64 @@ +name: "Static Analyze" + +on: + pull_request: + push: + branches: + - "1.x" + schedule: + - cron: '* 8 * * *' + +jobs: + static-analyze: + name: "Static Analyze" + + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + dependencies: + - "locked" + php-version: + - "7.4" + operating-system: + - "ubuntu-latest" + + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + coverage: pcov + tools: phive, composer:v2 + php-version: "${{ matrix.php-version }}" + ini-values: memory_limit=-1 + + - name: "Cache dependencies" + uses: "actions/cache@v2" + with: + path: | + ~/.composer/cache + tools + vendor + key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" + restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" + + - name: "Install lowest dependencies" + if: ${{ matrix.dependencies == 'lowest' }} + run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest" + + - name: "Install highest dependencies" + if: ${{ matrix.dependencies == 'highest' }} + run: "composer update --no-interaction --no-progress --no-suggest" + + - name: "Install locked dependencies" + if: ${{ matrix.dependencies == 'locked' }} + run: "composer install --no-interaction --no-progress --no-suggest" + + - name: "Install tools" + run: "phive install --trust-gpg-keys E82B2FB314E9906E,C5095986493B4AA0,CF1A108D0E7AE720,8A03EA3B385DBAA1,D0254321FB74703A,4AA394086372C20A --force-accept-unsigned" + + - name: "Static Analyze" + run: "composer static:analyze" \ No newline at end of file diff --git a/.phive/phars.xml b/.phive/phars.xml index c5170d6..a8837a6 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,6 +1,6 @@ - + diff --git a/composer.json b/composer.json index ee0a2d7..6903b0d 100644 --- a/composer.json +++ b/composer.json @@ -38,14 +38,13 @@ "symfony/cache": "^5.2" }, "require-dev": { - "coduo/php-matcher": "^5.0" + "coduo/php-matcher": "6.x@dev" }, "scripts": { "build": [ "@test" ], "test": [ - "@static:analyze", "tools\/phpunit.phar" ], "static:analyze": [ diff --git a/composer.lock b/composer.lock index 75d00b4..96bc1e4 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": "0294c2875570a7540ef35e9066e66c10", + "content-hash": "ff2dc56ffd0130e516629433942a3452", "packages": [ { "name": "aeon-php/calendar", @@ -3520,16 +3520,16 @@ "packages-dev": [ { "name": "coduo/php-matcher", - "version": "5.0.1", + "version": "6.x-dev", "source": { "type": "git", "url": "https://github.com/coduo/php-matcher.git", - "reference": "2e8ed688f70140dfcaa4ffc7c6ded8c2d6df0ae7" + "reference": "fd49031e7cc8f0e350884c3466a034b4d8eaa2ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/coduo/php-matcher/zipball/2e8ed688f70140dfcaa4ffc7c6ded8c2d6df0ae7", - "reference": "2e8ed688f70140dfcaa4ffc7c6ded8c2d6df0ae7", + "url": "https://api.github.com/repos/coduo/php-matcher/zipball/fd49031e7cc8f0e350884c3466a034b4d8eaa2ef", + "reference": "fd49031e7cc8f0e350884c3466a034b4d8eaa2ef", "shasum": "" }, "require": { @@ -3538,17 +3538,18 @@ "ext-filter": "*", "ext-json": "*", "ext-simplexml": "*", - "php": ">=7.2" + "php": ">=7.4" }, "require-dev": { "openlss/lib-array2xml": "^1.0", - "phpunit/phpunit": "^8.5", + "phpunit/phpunit": "^9.4", "symfony/expression-language": "^2.3|^3.0|^4.0|^5.0" }, "suggest": { "openlss/lib-array2xml": "In order ot use Coduo\\PHPMatcher\\Matcher\\XmlMatcher", "symfony/expression-language": "In order to use Coduo\\PHPMatcher\\Matcher\\ExpressionMatcher" }, + "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -3578,9 +3579,9 @@ ], "support": { "issues": "https://github.com/coduo/php-matcher/issues", - "source": "https://github.com/coduo/php-matcher/tree/5.0.1" + "source": "https://github.com/coduo/php-matcher/tree/6.x" }, - "time": "2020-10-09T13:30:26+00:00" + "time": "2020-12-26T14:31:37+00:00" }, { "name": "coduo/php-to-string", @@ -3891,7 +3892,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "coduo/php-matcher": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": {