Feature/disallow debug functions #85
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - '3.next-cake5' | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| testsuite-linux: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: ['8.1', '8.4'] | |
| dependencies: ['highest'] | |
| include: | |
| - php-version: '8.1' | |
| dependencies: 'lowest' | |
| - php-version: '8.2' | |
| dependencies: 'highest' | |
| - php-version: '8.3' | |
| dependencies: 'highest' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: mbstring, intl | |
| ini-values: zend.assertions=1 | |
| tools: cs2pr | |
| - name: Composer install | |
| uses: ramsey/composer-install@v2 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: ${{ matrix.composer-options }} | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit | |
| cs-stan: | |
| name: Coding Standard & Static Analysis | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| extensions: mbstring, intl | |
| coverage: none | |
| tools: phive, cs2pr | |
| - name: Composer Install | |
| uses: ramsey/composer-install@v2 | |
| - name: Run phpcs | |
| run: vendor/bin/phpcs --report=checkstyle | cs2pr | |
| - name: Run phpstan | |
| if: always() | |
| run: vendor/bin/phpstan analyse --debug --error-format=github src/ | |
| - name: Run phpstan integration test app | |
| if: always() | |
| run: vendor/bin/phpstan analyse --debug -c phpstan-test-app.neon --error-format=github tests/test_app/ | |
| - name: Run phpstan integration test plugin | |
| if: always() | |
| run: vendor/bin/phpstan analyse --debug -c phpstan-test-plugin.neon --error-format=github tests/test_plugin/ |