Skip to content

Commit

Permalink
Add commands, update code analysis tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurJCQ committed Jan 28, 2024
1 parent f4bdb15 commit e2fd950
Show file tree
Hide file tree
Showing 47 changed files with 1,181 additions and 748 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
php-versions: [ '8.2' ]
services:
postgresql:
image: postgres:13-alpine
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: 112358
POSTGRES_USER: killer
Expand Down
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand All @@ -8,11 +7,6 @@
/var/
/vendor/
###< symfony/framework-bundle ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
###< squizlabs/php_codesniffer ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
Expand All @@ -31,6 +25,11 @@ build
/config/jwt/*.pem
###< lexik/jwt-authentication-bundle ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###

###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ phpcs:
phpcs-ci: prepare-ci
vendor/bin/phpcs -sp --report=checkstyle --report-file=$(REPORTS_DIR)/phpcs.xml --standard=phpcs.xml.dist --extensions=php --ignore=*/tests/bootstrap.php src tests

phpmd:
vendor/bin/phpmd src text phpmd.xml

.PHONY: unit-tests
unit-tests:
@vendor/bin/codecept run Unit
Expand Down
16 changes: 7 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.2",
"php": "^8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
Expand Down Expand Up @@ -41,32 +41,30 @@
"symfony/yaml": "^6.2"
},
"require-dev": {
"arty/php-coding-standard": "^1.0",
"codeception/codeception": "^5.0",
"codeception/module-asserts": "^3.0",
"codeception/module-db": "^3.0",
"codeception/module-doctrine2": "^3.0",
"codeception/module-rest": "^3.3",
"codeception/module-symfony": "^3.1",
"codeception/module-symfony": "^3.3",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"jangregor/phpstan-prophecy": "^1.0",
"phpmd/phpmd": "^2.12",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.7",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.5",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6",
"symfony/browser-kit": "^6.2",
"symfony/css-selector": "^6.2",
"symfony/maker-bundle": "^1.43",
"symfony/phpunit-bridge": "^6.1",
"symfony/stopwatch": "^6.1",
"symfony/web-profiler-bundle": "^6.2"
"symfony/web-profiler-bundle": "^6.4"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"symfony/flex": true,
"symfony/runtime": true
"symfony/runtime": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"optimize-autoloader": true,
"preferred-install": {
Expand Down
Loading

0 comments on commit e2fd950

Please sign in to comment.