CI php webserver logs

This commit is contained in:
Matteo Gheza 2020-12-14 22:27:32 +01:00
parent 4a7c3951a1
commit c6e6232c7d
1 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,7 @@ jobs:
- name: Start webserver
run: |
nohup php -S 0.0.0.0:8080 &
nohup php -S 0.0.0.0:8080 2>&1 | tee php.log &
sleep 5 && curl 127.0.0.1:8080/.htaccess # request a simple static file
- name: Setup NodeJS
@ -92,6 +92,11 @@ jobs:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
with:
name: php_log_${{ github.run_id }}
path: php.log
- uses: actions/upload-artifact@v2
if: failure()
with: