Docker for local development
All checks were successful
Run code tests / Run-code-test (push) Successful in 1m20s

This commit is contained in:
Chicory ☕ 2024-07-26 19:30:00 +03:00
parent d9cc15fdc2
commit 589d5c2b18
Signed by: chicory
GPG Key ID: AC95A793F70BEDCD
3 changed files with 44 additions and 6 deletions

View File

@ -1,14 +1,16 @@
composer := docker-compose run --rm composer-package-testing composer -d app
code-style-fix: code-style-fix:
@composer code-style-fix @$(composer) code-style-fix
code-style-check: code-style-check:
@composer code-style-check @$(composer) code-style-check
analyze-code: analyze-code:
@composer analyze-code @$(composer) analyze-code
run-unit-tests: run-unit-tests:
@composer run-unit-tests @$(composer) run-unit-tests
full-test: full-test:
@composer full-test @$(composer) full-test

View File

@ -1 +1,29 @@
# Composer package template Composer package template
-------------------------
Template for composer packages with CI and a Docker image for local development.
### Сode style fixer
```bash
make code-style-fix
```
### Сode style check
```bash
make code-style-check
```
### Run analyzer
```bash
make analyze-code
```
### Run Run unit tests
```bash
make run-unit-tests
```
### Run full test
```bash
make full-test
```

8
docker-compose.yaml Normal file
View File

@ -0,0 +1,8 @@
---
version: "3.9"
services:
composer-package-testing:
image: ch1c0ry/php8-cli-actrunner
volumes:
- .:/app