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:
101101 run : |
102102 ddev create-watcher
103103 cd ${{ github.workspace }}/.ddev
104- ddev crowdsec-prepend-nginx
104+ ddev nginx-config custom_files/ crowdsec-prepend-nginx-site.conf
105105 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
106108 cp .ddev/custom_files/crowdsec-lib-settings.php crowdsec-lib-settings.php
107109 sed -i -e 's/REPLACE_API_KEY/${{ env.BOUNCER_KEY }}/g' crowdsec-lib-settings.php
108110 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
2121scripts /auto-prepend /.cache
2222scripts /** /* .log
2323
24+ # Public scripts
25+ scripts /public /cache-actions.php
26+ scripts /public /geolocation-test.php
27+
2428# MaxMind databases
2529* .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
253253
254254In auto-prepend mode, you can run some end-to-end tests.
255255
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+
256264We are using a Jest/Playwright Node.js stack to launch a suite of end-to-end tests.
257265
258266Tests 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