Skip to content

Update php to 8.4 and Update docker compose call #10

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

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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
composer-options: "--ignore-platform-reqs"
experimental: true
dependencies: "highest"
- php: "8.3"
composer-options: "--ignore-platform-reqs"
experimental: true
dependencies: "highest"
- php: "8.4"
composer-options: "--ignore-platform-reqs"
experimental: true
dependencies: "highest"
steps:
- name: Set up PHP
uses: shivammathur/setup-php@2.24.0
Expand Down
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,37 @@ help: ## Display this help
install: composer-install build up ## Install required software and initialize your local configuration

build: ## Build application docker images
@bash -c "docker-compose build ${PHP_CONTAINER_NAME}"
@bash -c "docker compose build ${PHP_CONTAINER_NAME}"

up: ## Start application containers and required services
@bash -c "export MOCKSERVER_LOG_LEVEL=WARN; docker-compose up -d"
@bash -c "export MOCKSERVER_LOG_LEVEL=WARN; docker compose up -d"

debug: ## Start application containers and required services in debug mode
@bash -c "export MOCKSERVER_LOG_LEVEL=INFO; docker-compose up -d"
@bash -c "export MOCKSERVER_LOG_LEVEL=INFO; docker compose up -d"

down: ## Stop application containers and required services
@docker-compose down
@docker compose down

test: ## Execute all phpunit test
@docker-compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpunit ${TEST}
@docker compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpunit ${TEST}

code-sniff cs: ## Detect coding standard violations in all project files using code sniffer
@docker-compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpcs
@docker compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpcs

code-format cf: ## Fix coding standard violations in all project files
@docker-compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpcbf
@docker compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpcbf

code-find-bugs phpstan: ## Run static analysis tool to find possible bugs using phpstan
@docker-compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpstan analyse
@docker compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpstan analyse

code-find-smells md: ## Run static analysis tool to find code smells using mess detector
@docker-compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpmd src,tests text phpmd.xml --suffixes php
@docker compose exec ${PHP_CONTAINER_NAME} ./vendor/bin/phpmd src,tests text phpmd.xml --suffixes php

composer-update: ## Run composer update
@docker run --rm --interactive --tty --volume $PWD:/app composer update

composer-install: ## Run composer update
@docker run --rm --interactive --tty --volume $PWD:/app composer install


console c: ## Run the container bash console
docker exec -it php /bin/bash
4 changes: 2 additions & 2 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8.1
FROM php:8.4

RUN pecl install xdebug && \
docker-php-ext-enable xdebug

COPY rootfs /

WORKDIR /app
WORKDIR /app