Fix level 5 type errors #54
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: 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' }} |