Skip to content

Commit

Permalink
Add commands, update code analysis tool (#142)
Browse files Browse the repository at this point in the history
* Add commands, update code analysis tool

* Fix CI
  • Loading branch information
ArthurJCQ authored Jan 28, 2024
1 parent f4bdb15 commit 52074b5
Show file tree
Hide file tree
Showing 48 changed files with 1,189 additions and 752 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
strategy:
fail-fast: true
matrix:
php-versions: [ '8.2' ]
php-versions: [ '8.3' ]
services:
postgresql:
image: postgres:13-alpine
image: postgres:16-alpine
env:
POSTGRES_PASSWORD: 112358
POSTGRES_USER: killer
Expand All @@ -18,10 +18,10 @@ jobs:
- 5432:5432
steps:
- name: Copy repo
uses: actions/checkout@v2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, iconv, json, mbstring
Expand All @@ -39,7 +39,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
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 52074b5

Please sign in to comment.