Skip to content

Commit

Permalink
CI - show installed and analyzed versions in custom job
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenekdrahos committed Feb 3, 2021
1 parent 6f3403f commit e5008f0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,31 @@ jobs:
bin/suggested-tools.sh install --prefer-dist;
fi
echo
- name: Show versions
env:
CI_PHP_VERSION: ${{ matrix.php }}
run: |
composer outdated --direct --all
if [[ ${CI_PHP_VERSION:0:3} == "8" ]]; then
# TODO: enable phpqa when robo v2 is supported
echo "Old robo causes fatal errors on php8..."
else
./phpqa tools
fi
- name: Run tests
env:
CI_PHP_VERSION: ${{ matrix.php }}
run: |
vendor/phpunit/phpunit/phpunit
if [[ ${CI_PHP_VERSION:0:3} == "7.4" ]]; then
./phpqa tools
# TODO: revert when phpcpd v6 is supported
./phpqa --config tests/.ci --tools "phpmetrics:0,phploc,phpcs:0,php-cs-fixer,phpmd:0,pdepend,phpcpd,phpstan,phpunit:0,psalm,security-checker,parallel-lint:0"
elif [[ ${CI_PHP_VERSION:0:3} == "8" ]]; then
# TODO: enable phpqa when robo v2 is supported
mkdir -p build
else
./phpqa tools
bin/ci.sh
fi
ls -lAh build
Expand Down

0 comments on commit e5008f0

Please sign in to comment.