Skip to content

#136 - PHP 8.4 compatibility #214

#136 - PHP 8.4 compatibility

#136 - PHP 8.4 compatibility #214

Workflow file for this run

name: "Checking the package: testing and linting"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: "Checking the package: testing and linting"
runs-on: ubuntu-24.04
strategy:
matrix:
php: ["8.3", "8.4"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup PHP
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # 2.33.0
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Cache composer dependencies
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run code style checker
run: composer cs
- name: Run tests
run: composer test