UHF-11184: Remove druidfi/tools #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: disabled | |
name: CI | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.3', '8.4'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP with composer v2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: composer:v2 | |
- name: Install required composer dependencies | |
run: composer install | |
- name: Run PHPCS | |
run: vendor/bin/phpcs --ignore=*/vendor/*,*/sut/* . | |
- name: Run phpstan | |
run: vendor/bin/phpstan analyze -c phpstan.neon . | |
- name: Run PHPUnit tests | |
run: | |
vendor/bin/phpunit -c tests/phpunit.xml tests/ | |
- name: Upload codecov | |
run: codecov | |