Skip to content

Commit

Permalink
update phpunit config and composer
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Dec 15, 2023
1 parent 4197c79 commit 3566fa7
Show file tree
Hide file tree
Showing 6 changed files with 1,869 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ jobs:
- name: PHPUnit
working-directory: apps/${{ env.APP_NAME }}
run: phpunit -c tests/phpunit.xml
run: composer run test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ js/
node_modules

/vendor/
tests/clover.xml
tests/.phpunit.result.cache
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"nextcloud/coding-standard": "^1.1",
"nextcloud/ocp": "dev-master",
"roave/security-advisories": "dev-latest",
"phpunit/phpunit": "^9.6",
"psalm/phar": "^5.15",
"friendsofphp/php-cs-fixer": "3.38"
},
Expand All @@ -35,7 +36,8 @@
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
"psalm:update-baseline:force": "psalm.phar --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"psalm:clear": "psalm.phar --clear-cache && psalm.phar --clear-global-cache",
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test": "phpunit --configuration tests/phpunit.xml"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 3566fa7

Please sign in to comment.