Add php v8.1 compatability #279
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: Continuous Integration | |
on: [ push, pull_request ] | |
jobs: | |
ci: | |
name: Suite to run | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- 7.4 | |
- 8.0 | |
- 8.1 | |
steps: | |
- name: Configure PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
ini-values: memory_limit=-1, error_reporting=E_ALL, display_errors=On | |
php-version: ${{ matrix.php-version }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Cache dependencies installed with composer" | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: | | |
php${{ matrix.php-version }}-composer- | |
- name: Install Composer dependencies | |
run: composer install --no-progress | |
- name: Run PHP Code Sniffer | |
run: composer run php:cs-fixer | |
- name: Run PHP Unit tests | |
run: composer run php:unittests |