From 22f7b6561647f092ba26c1b03619a1de6b7934c3 Mon Sep 17 00:00:00 2001 From: maestroerror Date: Tue, 27 Feb 2024 15:54:23 +0400 Subject: [PATCH 1/2] Workflow added on PR creation --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a672635 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: PHP CI + +on: + pull_request: + branches: [maestro] + # push: + # branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Run tests + run: ./vendor/bin/pest From a7c33436707c8cb382d2bc138060eb9e59c1eeab Mon Sep 17 00:00:00 2001 From: maestroerror Date: Tue, 27 Feb 2024 15:59:14 +0400 Subject: [PATCH 2/2] updated workflow --- .github/workflows/ci.yml | 14 ++++----- composer.lock | 68 +++++++++++++++++++++------------------- 2 files changed, 42 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a672635..09cca94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,14 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + - uses: actions/checkout@v2 + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + - name: Install dependencies + run: composer install --prefer-dist --no-progress - name: Run tests run: ./vendor/bin/pest diff --git a/composer.lock b/composer.lock index 144809a..d07048c 100644 --- a/composer.lock +++ b/composer.lock @@ -132,12 +132,12 @@ "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "202aaf6b7c2e1e0a622b0298e9f3f537e4d84018" + "reference": "2f5294676c802a62b0549f6bc8983f14294ce369" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/202aaf6b7c2e1e0a622b0298e9f3f537e4d84018", - "reference": "202aaf6b7c2e1e0a622b0298e9f3f537e4d84018", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/2f5294676c802a62b0549f6bc8983f14294ce369", + "reference": "2f5294676c802a62b0549f6bc8983f14294ce369", "shasum": "" }, "require": { @@ -185,7 +185,7 @@ "type": "tidelift" } ], - "time": "2023-11-01T08:01:43+00:00" + "time": "2024-02-10T11:10:03+00:00" }, { "name": "nikic/php-parser", @@ -193,12 +193,12 @@ "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "ce019e9ad711e31ee87c2c4c72e538b5240970c3" + "reference": "af14fdb282aa0e288bfe7eb3b57893484b68dc27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ce019e9ad711e31ee87c2c4c72e538b5240970c3", - "reference": "ce019e9ad711e31ee87c2c4c72e538b5240970c3", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/af14fdb282aa0e288bfe7eb3b57893484b68dc27", + "reference": "af14fdb282aa0e288bfe7eb3b57893484b68dc27", "shasum": "" }, "require": { @@ -244,7 +244,7 @@ "issues": "https://github.com/nikic/PHP-Parser/issues", "source": "https://github.com/nikic/PHP-Parser/tree/master" }, - "time": "2024-01-14T09:02:54+00:00" + "time": "2024-02-21T20:13:45+00:00" }, { "name": "nunomaduro/collision", @@ -921,17 +921,17 @@ "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "bc3dc91a5e9b14aa06d1d9e90647c5c5a2cc5353" + "reference": "153ae662783729388a584b4361f2545e4d841e3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/bc3dc91a5e9b14aa06d1d9e90647c5c5a2cc5353", - "reference": "bc3dc91a5e9b14aa06d1d9e90647c5c5a2cc5353", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", + "reference": "153ae662783729388a584b4361f2545e4d841e3c", "shasum": "" }, "require": { "doctrine/deprecations": "^1.0", - "php": "^7.4 || ^8.0", + "php": "^7.3 || ^8.0", "phpdocumentor/reflection-common": "^2.0", "phpstan/phpdoc-parser": "^1.13" }, @@ -970,22 +970,22 @@ "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.x" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" }, - "time": "2024-01-18T19:15:27+00:00" + "time": "2024-02-23T11:10:43+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.25.0", + "version": "1.26.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240" + "reference": "231e3186624c03d7e7c890ec662b81e6b0405227" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/bd84b629c8de41aa2ae82c067c955e06f1b00240", - "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/231e3186624c03d7e7c890ec662b81e6b0405227", + "reference": "231e3186624c03d7e7c890ec662b81e6b0405227", "shasum": "" }, "require": { @@ -1017,9 +1017,9 @@ "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/1.25.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.26.0" }, - "time": "2024-01-04T17:06:16+00:00" + "time": "2024-02-23T16:05:55+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1355,12 +1355,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b315a7c32a3a1033870236fb36914d8cf366c74a" + "reference": "3efde166f8370f1620a72f72c0c996a035cfe1f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b315a7c32a3a1033870236fb36914d8cf366c74a", - "reference": "b315a7c32a3a1033870236fb36914d8cf366c74a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3efde166f8370f1620a72f72c0c996a035cfe1f7", + "reference": "3efde166f8370f1620a72f72c0c996a035cfe1f7", "shasum": "" }, "require": { @@ -1448,7 +1448,7 @@ "type": "tidelift" } ], - "time": "2024-02-04T09:10:13+00:00" + "time": "2024-02-27T08:26:57+00:00" }, { "name": "psr/container", @@ -2499,12 +2499,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "82efc31d66f28eebfc21d23736fdadf4cb258f74" + "reference": "3a6b6bf5ce1b8a497ac75cb5d31cc7376f9a902f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/82efc31d66f28eebfc21d23736fdadf4cb258f74", - "reference": "82efc31d66f28eebfc21d23736fdadf4cb258f74", + "url": "https://api.github.com/repos/symfony/console/zipball/3a6b6bf5ce1b8a497ac75cb5d31cc7376f9a902f", + "reference": "3a6b6bf5ce1b8a497ac75cb5d31cc7376f9a902f", "shasum": "" }, "require": { @@ -2584,7 +2584,7 @@ "type": "tidelift" } ], - "time": "2024-02-03T16:11:47+00:00" + "time": "2024-02-22T20:28:06+00:00" }, { "name": "symfony/finder", @@ -2712,7 +2712,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/1.x" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" }, "funding": [ { @@ -2791,7 +2791,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/1.x" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" }, "funding": [ { @@ -2873,7 +2873,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/1.x" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" }, "funding": [ { @@ -2954,7 +2954,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/1.x" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" }, "funding": [ { @@ -3312,7 +3312,9 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "pestphp/pest": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [],