Add Pint #566
Workflow file for this run
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
name: Tests | |
on: [pull_request] | |
jobs: | |
## PHPUNIT | |
phpunit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [8.0, 8.1, 8.2, 8.3] | |
composer-flags: [null] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
extensions: intl curl | |
- run: php -v | |
- run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --prefer-dist --ansi | |
- run: ./vendor/bin/phpunit --color=always | |
## PHPSTAN | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PHP | |
uses: shivammathur/setup-php@2.21.0 | |
with: | |
php-version: '8.0' | |
coverage: none | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
update: true | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader | |
- name: PHPStan tests | |
run: composer phpstan | |
## PINT | |
pint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PHP | |
uses: shivammathur/setup-php@2.21.0 | |
with: | |
php-version: '8.0' | |
coverage: none | |
tools: cs2pr | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
update: true | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader | |
- name: Run Pint | |
run: composer exec -- pint --test --format=checkstyle | cs2pr |