|
2 | 2 |
|
3 | 3 | First off, thanks for taking the time to contribute!
|
4 | 4 |
|
| 5 | +## Workflow |
5 | 6 | For local package development use [Docker](https://www.docker.com/products/docker-desktop):
|
6 | 7 |
|
7 |
| -**Step 1**) Pull code and build Test container |
| 8 | +### Step 1 |
| 9 | +* Pull code and build Test container. |
| 10 | +* Fork the project. |
| 11 | + |
8 | 12 | ```
|
9 | 13 | git clone https://github.com/Ouxsoft/phpmarkup.git
|
10 | 14 | cd phpmarkup
|
11 | 15 | docker build --target test --tag phpmarkup:latest -f Dockerfile .
|
12 | 16 | docker run -it --mount type=bind,source="$(pwd)"/,target=/application/ phpmarkup:latest composer install
|
13 | 17 | ```
|
14 | 18 |
|
15 |
| -**Step 2**) Make code changes. |
| 19 | +### Step 2 |
| 20 | +* Make your code changes using CODING_STANDARDS.md. |
| 21 | +* Run Automated QA using local volume. |
| 22 | +* Test your changes using `composer test`. |
| 23 | +* Update or add tests to avoid the change breaking in future releases. |
16 | 24 |
|
17 |
| -**Step 3**) Run Automated QA using local volume |
18 | 25 | ```
|
19 | 26 | docker run -it --mount type=bind,source="$(pwd)"/,target=/application/ phpmarkup:latest composer qa
|
20 | 27 | ```
|
21 | 28 |
|
22 |
| -**Step 4**) Rebuild Docs |
| 29 | +### Step 4 |
| 30 | +* Run `composer update` to update composer packages and commit new `composer.lock` file. |
| 31 | +* Rebuild Docs |
| 32 | + |
23 | 33 | ```
|
24 | 34 | docker build --target docs --tag phpmarkup:docs-latest -f Dockerfile .
|
25 | 35 | docker run -it --mount type=bind,source="$(pwd)"/,target=/app/ phpmarkup:docs-latest bash -c "cd /app/docs && doxygen Doxyfile && doxyphp2sphinx Ouxsoft::PHPMarkup"
|
26 | 36 | ```
|
27 | 37 |
|
28 |
| -**Step 5**) Submit PR |
| 38 | +### Step 5 |
| 39 | +* Submit a [pull request](https://github.com/ouxsoft/phpmarkup-dev/pulls). |
| 40 | + |
| 41 | +## Reporting issues |
| 42 | + |
| 43 | +Please report issue and open new tickets: |
| 44 | + |
| 45 | +* [Report Issues](https://github.com/ouxsoft/livingMarkup/issues) |
0 commit comments