Skip to content

Commit

Permalink
chore(dev): Moving development actions to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Mar 21, 2024
1 parent 3d11055 commit 0781eeb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "testcontainers-php",
"image": "opencodeco/phpctl:php83-devcontainer",
"postCreateCommand": "composer install",
"postCreateCommand": "make",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.PHONY: install
install:
@composer install

.PHONY: test
test:
@vendor/bin/phpunit

.PHONY: lint
lint:
@vendor/bin/php-cs-fixer fix .
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
"friendsofphp/php-cs-fixer": "^3.41",
"predis/predis": "^2.2"
},
"scripts": {
"test": "vendor/bin/phpunit",
"lint": "vendor/bin/php-cs-fixer fix ."
},
"config": {
"allow-plugins": {
"php-http/discovery": true
Expand Down

0 comments on commit 0781eeb

Please sign in to comment.