Merge pull request #1410 from hafezdivandari/master-fix-some-bugs #312
This file contains 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: Static Analysis | |
on: | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
name: Static Analysis | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
php-version: [8.1, 8.2, 8.3, 8.4] | |
composer-stability: [prefer-lowest, prefer-stable] | |
operating-system: | |
- ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: ${{ matrix.php-version }} | |
ini-values: memory_limit=-1 | |
tools: composer:v2, cs2pr | |
- name: Install Dependencies | |
run: composer update --${{ matrix.composer-stability }} --prefer-dist --no-interaction --no-progress | |
- name: Run Static Analysis | |
run: vendor/bin/phpstan analyse | |