Skip to content

Commit

Permalink
feat(CI): Update psalm action and migrate to nextcloud/OCP package
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 10, 2023
1 parent 3e6149a commit 0318c23
Show file tree
Hide file tree
Showing 7 changed files with 789 additions and 87 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/static-analysis.yml

This file was deleted.

17 changes: 14 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"autoload-dev": {
"psr-4": {
"OCP\\": "vendor/nextcloud/ocp/OCP",
"OCA\\TwoFactorTOTP\\": "lib/"
}
},
"require": {
"christian-riesen/base32": "^1.3",
"rullzer/easytotp": "^0.1.3"
Expand All @@ -7,13 +13,17 @@
"christian-riesen/otp": "2.*",
"christophwurst/nextcloud_testing": "^0.12",
"nextcloud/coding-standard": "^1.0.0",
"psalm/phar": "^4.3"
"nextcloud/ocp": "dev-master",
"vimeo/psalm": "^5.7"
},
"scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm.phar",
"psalm": "psalm --threads=1",
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test": "phpunit -c tests/phpunit.xml",
"test:acceptance": "phpunit -c tests/phpunit.xml tests/Acceptance",
"test:unit": "phpunit -c tests/phpunit.xml tests/Unit",
Expand All @@ -25,6 +35,7 @@
"classmap-authoritative": true,
"platform": {
"php": "8.0"
}
},
"sort-packages": true
}
}
Loading

0 comments on commit 0318c23

Please sign in to comment.