X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=13cf9cce291261c17ef344d61be7047e77a1aff7;hb=989f163db20937b42d4aa5f99437baae21d13259;hp=0c8a9e865780ba62e9c8688f1d3643cab99f6f5b;hpb=6dc68874767e9a49c1d4bddef46f715fbc85b09b;p=plcapi.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c8a9e8..13cf9cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,3 +34,26 @@ jobs: uses: actions/checkout@v2 - 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' + # 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') }} + - + uses: php-actions/composer@v6 + # simpler alternative ? + #run: 'composer install' + - + if: ${{ matrix.php == '7.4' }} + run: './tests/ci/setup/setup_code_coverage.sh enable' + - + # @todo bring back $PHPUNIT_OPTS + 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; env; php -i; sudo cat /var/log/privoxy/*; sudo cat /var/log/apache2/error.log; sudo cat /var/log/apache2/other_vhosts_access.log; sudo cat /var/log/php*.log'