Docker for local development
All checks were successful
Run code tests / Run-code-test (push) Successful in 1m20s
All checks were successful
Run code tests / Run-code-test (push) Successful in 1m20s
This commit is contained in:
parent
d9cc15fdc2
commit
589d5c2b18
12
Makefile
12
Makefile
|
@ -1,14 +1,16 @@
|
|||
composer := docker-compose run --rm composer-package-testing composer -d app
|
||||
|
||||
code-style-fix:
|
||||
@composer code-style-fix
|
||||
@$(composer) code-style-fix
|
||||
|
||||
code-style-check:
|
||||
@composer code-style-check
|
||||
@$(composer) code-style-check
|
||||
|
||||
analyze-code:
|
||||
@composer analyze-code
|
||||
@$(composer) analyze-code
|
||||
|
||||
run-unit-tests:
|
||||
@composer run-unit-tests
|
||||
@$(composer) run-unit-tests
|
||||
|
||||
full-test:
|
||||
@composer full-test
|
||||
@$(composer) full-test
|
30
README.md
30
README.md
|
@ -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
8
docker-compose.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
composer-package-testing:
|
||||
image: ch1c0ry/php8-cli-actrunner
|
||||
volumes:
|
||||
- .:/app
|
Loading…
Reference in New Issue
Block a user