Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docker-compose.yml with composer, test, psalm and format #1

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
},
"config": {
"sort-packages": true
"sort-packages": true,
"platform": {
"php": "8.0"
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
services:
composer:
image: composer:latest
volumes:
- .:/app

test:
image: php:8.0-cli
working_dir: "/usr/src/myapp"
volumes:
- .:/usr/src/myapp
entrypoint: "vendor/bin/phpunit"

psalm:
image: php:8.0-cli
working_dir: "/usr/src/myapp"
volumes:
- .:/usr/src/myapp
entrypoint: "vendor/bin/psalm"

format:
image: php:8.0-cli
working_dir: "/usr/src/myapp"
volumes:
- .:/usr/src/myapp
entrypoint: "vendor/bin/php-cs-fixer fix --allow-risky=yes"