|
|
@@ -220,15 +220,17 @@ jobs:
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
+ - uses: actions/checkout@v3
|
|
|
|
|
|
- name: Setup PHP
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
with:
|
|
|
php-version: '7.4'
|
|
|
extensions: mbstring, intl, apcu, memcached, redis
|
|
|
- tools: cs2pr
|
|
|
coverage: none
|
|
|
+ tools: phive, cs2pr
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
- name: Get composer cache directory
|
|
|
id: composer-cache
|
|
|
@@ -245,22 +247,26 @@ jobs:
|
|
|
key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }}
|
|
|
|
|
|
- name: Composer install
|
|
|
- run: composer stan-setup
|
|
|
+ run: composer update
|
|
|
|
|
|
- - name: Run PHP CodeSniffer
|
|
|
+ - name: Install PHP tools with phive.
|
|
|
+ run: phive install --trust-gpg-keys 'CF1A108D0E7AE720,12CE0F1D262429A5'
|
|
|
+
|
|
|
+ - name: Run phpcs
|
|
|
+ if: always()
|
|
|
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
|
|
|
|
|
|
- name: Run psalm
|
|
|
if: always()
|
|
|
- run: vendor/bin/psalm.phar --output-format=github
|
|
|
+ run: tools/psalm --output-format=github
|
|
|
|
|
|
- name: Run phpstan
|
|
|
if: always()
|
|
|
- run: vendor/bin/phpstan.phar analyse --error-format=github
|
|
|
+ run: tools/phpstan analyse --error-format=github
|
|
|
|
|
|
- name: Run phpstan for tests
|
|
|
if: always()
|
|
|
- run: vendor/bin/phpstan.phar analyse -c tests/phpstan.neon --error-format=github
|
|
|
+ run: tools/phpstan analyse -c tests/phpstan.neon --error-format=github
|
|
|
|
|
|
- name: Run class deprecation aliasing validaton script
|
|
|
if: always()
|