Merge pull request #88 from packagist/add-dev-tooling #149
This file contains hidden or 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" | |
| - "8.3" | |
| - "8.4" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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 | |
| - 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 --no-progress |