You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,3 +57,25 @@ Some of the ideas for upcoming filters:
57
57
58
58
New pull requests should be based on the `develop` branch.
59
59
The `master` branch is the stable branch: it usually matches the latest a release but in can be a bit ahead.
60
+
61
+
Setting up an environment with all the required libraries may be very hard.
62
+
In order to run the tests locally, you can use the same [docker images](https://github.com/php-imagine/docker-builder/pkgs/container/test) used by Imagine to test the pull requests.
63
+
64
+
For example, if you have Imagine locally in the `/home/me/imagine` folder, you can run tests for PHP 8.1 with the GD and Imagick with this very simple approach:
65
+
66
+
1. Launch a temporary docker container with:
67
+
```sh
68
+
docker run --rm -it -v /home/me/imagine:/app ghcr.io/php-imagine/test:8.1-gd-imagick bash
69
+
```
70
+
2. Inside the docker container, run these commands:
71
+
```sh
72
+
cd /app
73
+
composer update
74
+
compoer run test -- --exclude-group always-skipped,gmagick
75
+
```
76
+
77
+
PS: This approach works on Windows too: simply launch the docker container with
78
+
79
+
```
80
+
docker run --rm -it -v C:\Path\To\Imagine:/app ghcr.io/php-imagine/test:8.1-gd-imagick bash
0 commit comments