Merge pull request #70 from packagist/naderman-patch-1 #85
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "7.2" | |
- "7.3" | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
ini-values: "memory_limit=-1, phar.readonly=0" | |
php-version: "${{ matrix.php-version }}" | |
- name: Validate composer.json | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: PHPUnit | |
run: ./vendor/bin/phpunit tests | |
- name: PHP-CS-Fixer | |
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: 1 | |
- name: PHPStan | |
run: ./vendor/bin/phpstan analyze src --no-progress |