85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
on: [pull_request]
|
|
|
|
jobs:
|
|
phpunit:
|
|
name: PHPUnit
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['8.1', '8.2', '8.3']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-version }}
|
|
coverage: none
|
|
extensions: intl curl
|
|
- run: composer update --no-interaction --no-progress --prefer-dist --ansi
|
|
- run: composer test:unit
|
|
|
|
phpstan:
|
|
name: PHPStan
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.1'
|
|
coverage: none
|
|
env:
|
|
COMPOSER_TOKEN: ${{ github.token }}
|
|
update: true
|
|
|
|
- name: Install dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
|
|
|
- name: PHPStan tests
|
|
run: composer test:types
|
|
|
|
rector:
|
|
name: Rector
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.1'
|
|
coverage: none
|
|
env:
|
|
COMPOSER_TOKEN: ${{ github.token }}
|
|
update: true
|
|
|
|
- name: Install dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
|
|
|
- name: PHPStan tests
|
|
run: composer test:refactor
|
|
|
|
pint:
|
|
name: Pint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.1'
|
|
coverage: none
|
|
tools: cs2pr
|
|
env:
|
|
COMPOSER_TOKEN: ${{ github.token }}
|
|
update: true
|
|
|
|
- name: Install dependencies
|
|
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
|
|
|
- name: Run Pint
|
|
run: composer exec -- pint --test --format=checkstyle | cs2pr
|