ci: add phpstan, replace php-cs-fixer with php codesniffer #1
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: Build | |
| on: | |
| - pull_request | |
| - push | |
| jobs: | |
| tests: | |
| runs-on: "ubuntu-latest" | |
| strategy: | |
| matrix: | |
| php-versions: ['8.2', '8.3', 'highest'] | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: "Checkout" | |
| uses: "actions/checkout@v6" | |
| - name: "Install dependencies with Composer" | |
| uses: "ramsey/composer-install@v3" | |
| - run: "composer run check-syntax" | |
| - run: "composer run check-codestyle" | |
| - run: "composer run static-analysis" | |
| - run: "composer run test" |