Add PHP 8.4 and 8.5 support #91
Workflow file for this run
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: build | |
| on: [ push, pull_request ] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: [ ubuntu-latest ] | |
| php-versions: [ '8.1', '8.2', '8.3', '8.4', '8.5' ] | |
| name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: gmp | |
| coverage: xdebug | |
| - name: Check PHP Version | |
| run: php -v | |
| - name: Check Composer Version | |
| run: composer -V | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Install dependencies | |
| run: composer update --prefer-dist --no-progress --no-suggest | |
| - name: Run PHP Coding Standards Fixer | |
| run: composer cs:check | |
| - name: Run PHP CodeSniffer | |
| run: composer sniffer:check | |
| - name: Run PHPStan | |
| run: composer stan | |
| - name: Run tests | |
| if: ${{ matrix.php-versions != '8.4' }} | |
| run: composer test | |
| - name: Run tests with coverage | |
| if: ${{ matrix.php-versions == '8.4' }} | |
| run: composer test:coverage |