diff --git a/Containerfile b/Containerfile index 51f0222..d57b734 100644 --- a/Containerfile +++ b/Containerfile @@ -4,4 +4,4 @@ WORKDIR /code COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY ./ /code -RUN composer install \ No newline at end of file +RUN composer install diff --git a/Makefile b/Makefile index b5199a3..e8eec65 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ PHP = docker compose run php +.PHONY: composer_install composer_update static_analysis tests + composer_install: @$(PHP) composer install @@ -8,3 +10,7 @@ composer_update: static_analysis: @$(PHP) vendor/bin/psalm + +tests: + @$(PHP) rm -rf var/cache + @$(PHP) vendor/bin/phpunit diff --git a/phpunit.xml b/phpunit.xml deleted file mode 100644 index e8f8e0c..0000000 --- a/phpunit.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - ./tests/ - - - - - ./src - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..60cb564 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,19 @@ + + + + + ./src + + + + + + + + + + + ./tests + + +