Add strict types #32
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: Check Code Style and Unit Test | |
| on: [push] | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| operating-system: ['ubuntu-latest'] | |
| php-versions: ['8.3', '8.4'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| tools: composer | |
| - name: Install Composer (Packages) | |
| run: composer install --prefer-dist | |
| - name: PHP CS | |
| run: ./vendor/bin/phpcs | |
| - name: PHP CS Fixer | |
| run: ./vendor/bin/php-cs-fixer fix --dry-run --diff | |
| - name: PHP Unit | |
| run: ./vendor/bin/phpunit --coverage-text --colors |