Skip to content

Commit

Permalink
ci: Use 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 Jan 10, 2025
1 parent b1e24d1 commit bc2bf0f
Show file tree
Hide file tree
Showing 11 changed files with 4,164 additions and 3,765 deletions.
56 changes: 34 additions & 22 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
labels:
- 3. to review
- dependencies
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
labels:
- 3. to review
- dependencies
- package-ecosystem: composer
directories:
- "/"
- "/vendor-bin/csfixer"
- "/vendor-bin/phpunit"
- "/vendor-bin/psalm"
commit-message:
prefix: "ci"
include: "scope"
versioning-strategy: "increase"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Berlin
labels:
- 3. to review
- dependencies

# NPM: Code-Dependencies
- package-ecosystem: npm
directory: "/"
commit-message:
prefix: "build"
include: "scope"
versioning-strategy: "increase"
schedule:
interval: weekly
day: saturday
time: "03:00"
timezone: Europe/Berlin
labels:
- 3. to review
- dependencies
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ nbproject
/tests/js/node_modules
/tests/.phpunit.result.cache
/vendor
/vendor-bin/*/vendor

2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
}
],
"require-dev": {
"nextcloud/coding-standard": "^1.2",
"nextcloud/ocp": "dev-stable28",
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.26"
"nextcloud/ocp": "dev-stable28"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -26,7 +23,10 @@
"platform": {
"php": "8.0.2"
},
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
Expand All @@ -38,5 +38,8 @@
"psalm:clear": "psalm. --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test:unit": "vendor/bin/phpunit --color -c tests/phpunit.xml"
}
},
"require": {
"bamarni/composer-bin-plugin": "^1.8"
}
}
Loading

0 comments on commit bc2bf0f

Please sign in to comment.