+ -
+ # @todo add config setup scripts for windows
+ run: 'chmod 755 ./tests/ci/setup/*.sh && sudo ./tests/ci/setup/setup_perl.sh && sudo ./tests/ci/setup/setup_apache.sh && sudo ./tests/ci/setup/setup_privoxy.sh && sudo ./tests/ci/setup/setup_php_github.sh'
+ # Avoid downloading composer deps on every workflow. Is this useful for us?
+ #-
+ # uses: actions/cache@v2
+ # with:
+ # path: /tmp/composer-cache
+ # key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
+ -
+ # simpler alternative ? Atm, php-actions/composer also fails because of missing php xsl extension!
+ #uses: php-actions/composer@v6
+ run: 'composer install'
+ -
+ if: ${{ matrix.php == '7.4' }}
+ run: './tests/ci/setup/setup_code_coverage.sh enable'
+ -
+ # @todo bring back $PHPUNIT_OPTS to trigger code coverage
+ run: './vendor/bin/phpunit -v tests'
+ -
+ run: 'python3 demo/client/python/test.py'
+ -
+ run: 'perl demo/client/perl/test.pl'
+ -
+ if: ${{ failure() }}
+ run: |
+ systemctl status apache2.service
+ ls -la /etc/apache2/mods-enabled
+ ls -la /etc/apache2/conf-enabled
+ ls -la /etc/apache2/mods-available
+ ls -la /etc/apache2/conf-available
+ sudo cat /var/log/apache2/error.log
+ sudo cat /var/log/apache2/other_vhosts_access.log
+ #env
+ #php -i
+ #sudo cat /var/log/privoxy/*
+ #sudo cat /var/log/php*.log