Skip to content

Commit

Permalink
Merge pull request #674 from eerison/add-phpstan-doctrine
Browse files Browse the repository at this point in the history
Add phpstan doctrine
  • Loading branch information
eerison authored Aug 6, 2022
2 parents d2c1cc5 + 018a30b commit aa3fb87
Show file tree
Hide file tree
Showing 31 changed files with 460 additions and 237 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ jobs:
needs: build
container:
image: 3lever/php:8.1.8-fpm-postgresql-dev
services:
db:
image: postgres
env:
POSTGRES_USER: myprofile
POSTGRES_PASSWORD: 123456
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2

Expand All @@ -78,6 +91,12 @@ jobs:
node_modules
public
- name: Setup Database
run: composer db

- name: Fixtures
run: composer db:fixtures

- name: See files
run: |
pwd
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Xdebug is listening on port [10000](.docker/common.env)
[ci_link]: https://github.com/eerison/myprofile/actions/workflows/continuous_integration.yml?query=workflow%3AContinuous+Integration
[cd_badge]: https://github.com/eerison/myprofile/actions/workflows/continuous_deploy.yml/badge.svg
[cd_link]: https://github.com/eerison/myprofile/actions/workflows/continuous_deploy.yml?query=workflow%3AContinuous+Deploy
[phpstan_badge]: https://img.shields.io/badge/PHPStan-level%207-brightgreen.svg?style=flat
[phpstan_badge]: https://img.shields.io/badge/PHPStan-level%20max-brightgreen.svg?style=flat
[phpstan_link]: https://github.com/eerison/myprofile/blob/2.x/phpstan.neon#L2
[test_badge]: https://codecov.io/gh/eerison/myprofile/branch/2.x/graph/badge.svg?token=ZIW9RTWH1B
[test_link]: https://codecov.io/gh/eerison/myprofile
Expand Down
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"presta/sitemap-bundle": "^3.0",
"sensio/framework-extra-bundle": "^6.0",
"sentry/sentry-symfony": "^4.0",
"shield-w4ll/simple-authenticator": "dev-main",
"shield-w4ll/curriculum-bundle": "^0.1",
"shield-w4ll/simple-authenticator": "^0.2",
"stof/doctrine-extensions-bundle": "^1.7",
"symfony/console": "^v6.1",
"symfony/dotenv": "^v6.1",
Expand All @@ -36,7 +37,6 @@
"symfony/validator": "^v6.1",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "^v6.1",
"threelever/curriculum-bundle": "dev-main",
"transloadit/php-sdk": "^2.1",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
Expand All @@ -46,7 +46,10 @@
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-faker": "^1.0",
"pestphp/pest-plugin-mock": "^1.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.5",
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-symfony": "^1.2",
"rector/rector": "^0.13",
"spatie/pest-plugin-snapshots": "^1.1",
"symfony/browser-kit": "^6.1",
Expand All @@ -65,7 +68,8 @@
"allow-plugins": {
"symfony/flex": true,
"symfony/runtime": true,
"pestphp/pest-plugin": true
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true
}
},
"autoload": {
Expand Down
Loading

0 comments on commit aa3fb87

Please sign in to comment.