fix: add parallel-lint as dev dependency to avoid CI network issues
Moves php-parallel-lint from global composer install during CI to a project dev dependency. This uses the cached vendor folder instead of requiring network access to Packagist during CI runs.
This commit is contained in:
@@ -102,10 +102,8 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- composer-install
|
- composer-install
|
||||||
commands:
|
commands:
|
||||||
- echo "Installing parallel-lint..."
|
|
||||||
- composer global require php-parallel-lint/php-parallel-lint --quiet
|
|
||||||
- echo "Checking PHP syntax (parallel)..."
|
- echo "Checking PHP syntax (parallel)..."
|
||||||
- ~/.composer/vendor/bin/parallel-lint app routes database config --colors --blame
|
- ./vendor/bin/parallel-lint app routes database config --colors --blame
|
||||||
- echo "✅ PHP syntax check complete!"
|
- echo "✅ PHP syntax check complete!"
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|||||||
@@ -40,7 +40,8 @@
|
|||||||
"nunomaduro/collision": "^8.6",
|
"nunomaduro/collision": "^8.6",
|
||||||
"orangehill/iseed": "^3.1",
|
"orangehill/iseed": "^3.1",
|
||||||
"pestphp/pest": "^4.0",
|
"pestphp/pest": "^4.0",
|
||||||
"pestphp/pest-plugin-laravel": "^4.0"
|
"pestphp/pest-plugin-laravel": "^4.0",
|
||||||
|
"php-parallel-lint/php-parallel-lint": "^1.4"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
65
composer.lock
generated
65
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "581fc0447e830b1813a3f02c80322cdd",
|
"content-hash": "cfdc06865134c2a0b90c33cc2a56be08",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "anourvalar/eloquent-serialize",
|
"name": "anourvalar/eloquent-serialize",
|
||||||
@@ -13129,6 +13129,67 @@
|
|||||||
},
|
},
|
||||||
"time": "2025-07-22T14:01:30+00:00"
|
"time": "2025-07-22T14:01:30+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "php-parallel-lint/php-parallel-lint",
|
||||||
|
"version": "v1.4.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/php-parallel-lint/PHP-Parallel-Lint.git",
|
||||||
|
"reference": "6db563514f27e19595a19f45a4bf757b6401194e"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/php-parallel-lint/PHP-Parallel-Lint/zipball/6db563514f27e19595a19f45a4bf757b6401194e",
|
||||||
|
"reference": "6db563514f27e19595a19f45a4bf757b6401194e",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-json": "*",
|
||||||
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"grogy/php-parallel-lint": "*",
|
||||||
|
"jakub-onderka/php-parallel-lint": "*"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "^1.3 || ^2.0",
|
||||||
|
"php-parallel-lint/php-console-highlighter": "0.* || ^1.0",
|
||||||
|
"squizlabs/php_codesniffer": "^3.6"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"php-parallel-lint/php-console-highlighter": "Highlight syntax in code snippet"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"parallel-lint"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"./src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-2-Clause"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jakub Onderka",
|
||||||
|
"email": "ahoj@jakubonderka.cz"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "This tool checks the syntax of PHP files about 20x faster than serial check.",
|
||||||
|
"homepage": "https://github.com/php-parallel-lint/PHP-Parallel-Lint",
|
||||||
|
"keywords": [
|
||||||
|
"lint",
|
||||||
|
"static analysis"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/issues",
|
||||||
|
"source": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/tree/v1.4.0"
|
||||||
|
},
|
||||||
|
"time": "2024-03-27T12:14:49+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-common",
|
"name": "phpdocumentor/reflection-common",
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
@@ -15154,5 +15215,5 @@
|
|||||||
"php": "^8.2"
|
"php": "^8.2"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.9.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user