Skip to content

Commit

Permalink
ci: Migrate to vendor-bin
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 1, 2024
1 parent 8039ff6 commit 16e09ba
Show file tree
Hide file tree
Showing 13 changed files with 4,220 additions and 3,832 deletions.
20 changes: 7 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
labels:
- 3. to review
- dependencies
- package-ecosystem: composer
directory: "/tests/Integration"
directories:
- "/"
- "/tests/Integration"
- "/vendor-bin/csfixer"
- "/vendor-bin/mozart"
- "/vendor-bin/phpunit"
- "/vendor-bin/psalm"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
labels:
- 3. to review
- dependencies
Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

require_once './vendor/autoload.php';
require_once './vendor-bin/csfixer/vendor/autoload.php';

use Nextcloud\CodingStandard\Config;

Expand Down
21 changes: 9 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"license": "AGPL",
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/coding-standard": "^1.2",
"nextcloud/ocp": "dev-master",
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.14"
"nextcloud/ocp": "dev-master"
},
"config": {
"optimize-autoloader": true,
Expand All @@ -35,14 +32,14 @@
"composer dump-autoload"
],
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"openapi": "generate-spec",
"psalm": "psalm --threads=1",
"psalm:dev": "psalm --no-cache --threads=$(nproc)",
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"cs:check": "vendor/bin/php-cs-fixer fix --dry-run --diff",
"cs:fix": "vendor/bin/php-cs-fixer fix",
"openapi": "vendor/bin/generate-spec",
"psalm": "vendor/bin/psalm --threads=1",
"psalm:dev": "vendor/bin/psalm --no-cache --threads=$(nproc)",
"psalm:update-baseline": "vendor/bin/psalm --threads=1 --update-baseline",
"psalm:clear": "vendor/bin/psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "vendor/bin/psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test:unit": "vendor/bin/phpunit --color -c tests/Unit/phpunit.xml",
"test:integration": "cd tests/Integration && ./run.sh"
}
Expand Down
Loading

0 comments on commit 16e09ba

Please sign in to comment.