File tree Expand file tree Collapse file tree 5 files changed +15
-117
lines changed Expand file tree Collapse file tree 5 files changed +15
-117
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,10 @@ jobs:
101
101
run : |
102
102
ddev create-watcher
103
103
cd ${{ github.workspace }}/.ddev
104
- ddev crowdsec-prepend-nginx
104
+ ddev nginx-config custom_files/ crowdsec-prepend-nginx-site.conf
105
105
cd ${{ github.workspace }}
106
+ cp .ddev/custom_files/crowdsec/cache-actions.php my-own-modules/crowdsec-php-lib/scripts/public/cache-actions.php
107
+ cp .ddev/custom_files/crowdsec/geolocation-test.php my-own-modules/crowdsec-php-lib/scripts/public/geolocation-test.php
106
108
cp .ddev/custom_files/crowdsec-lib-settings.php crowdsec-lib-settings.php
107
109
sed -i -e 's/REPLACE_API_KEY/${{ env.BOUNCER_KEY }}/g' crowdsec-lib-settings.php
108
110
sed -i -e 's/REPLACE_PROXY_IP/${{ env.PROXY_IP }}/g' crowdsec-lib-settings.php
Original file line number Diff line number Diff line change @@ -21,5 +21,9 @@ scripts/auto-prepend/.logs
21
21
scripts /auto-prepend /.cache
22
22
scripts /** /* .log
23
23
24
+ # Public scripts
25
+ scripts /public /cache-actions.php
26
+ scripts /public /geolocation-test.php
27
+
24
28
# MaxMind databases
25
29
* .mmdb
Original file line number Diff line number Diff line change @@ -253,6 +253,14 @@ https://phpXX.ddev.site/my-own-modules/crowdsec-php-lib/scripts/public/protected
253
253
254
254
In auto-prepend mode, you can run some end-to-end tests.
255
255
256
+ Before running the tests, you have to copy some testing scripts:
257
+
258
+ ```
259
+ cd php-project-sources
260
+ cp .ddev/custom_files/crowdsec/cache-actions.php my-own-modules/crowdsec-php-lib/scripts/public/cache-actions.php
261
+ cp .ddev/custom_files/crowdsec/geolocation-test.php my-own-modules/crowdsec-php-lib/scripts/public/geolocation-test.php
262
+ ```
263
+
256
264
We are using a Jest/Playwright Node.js stack to launch a suite of end-to-end tests.
257
265
258
266
Tests code is in the ` tests/end-to-end ` folder. You should have to ` chmod +x ` the scripts you will find in
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments