From 0781eebf5ef6faff2dc069a5615020f0a6df2f89 Mon Sep 17 00:00:00 2001 From: leocavalcante Date: Thu, 21 Mar 2024 01:22:12 +0000 Subject: [PATCH] chore(dev): Moving development actions to Makefile --- .devcontainer/devcontainer.json | 2 +- Makefile | 11 +++++++++++ composer.json | 4 ---- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 Makefile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 39208bd..9a4ca01 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5cfd3ce --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +.PHONY: install +install: + @composer install + +.PHONY: test +test: + @vendor/bin/phpunit + +.PHONY: lint +lint: + @vendor/bin/php-cs-fixer fix . diff --git a/composer.json b/composer.json index 89b1758..aa969c2 100644 --- a/composer.json +++ b/composer.json @@ -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