Skip to content

Fix level 4 type errors #53

Fix level 4 type errors

Fix level 4 type errors #53

Workflow file for this run

name: PHP Composer
on: [push, pull_request]
jobs:
build:
name: Run tests on ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.2', '8.3', '8.4' ]
steps:
- name: Checkout
uses: actions/checkout@v4
# Docs: https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Composer dependencies
run: composer install --no-progress
- name: Run PHPUnit
run: composer test
- name: Perform static analysis
run: composer analyze -- --error-format=github
if: ${{ matrix.php == '8.4' }}
- name: Check Formatting
run: vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no
if: ${{ matrix.php == '8.3' }}