Add psalm #11
Workflow file for this run
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: PHP Static Analysis | |
on: pull_request | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- 8.2 | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v4" | |
- name: "Install PHP w/ Extensions" | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: "Install Composer dependencies" | |
run: composer install --no-progress --no-interaction | |
- name: "Check syntax (php-parallel-lint)" | |
run: vendor/bin/parallel-lint src tests | |
PHPStan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Install PHP w/ Extensions" | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: 8.2 | |
coverage: none | |
- name: "Install Composer dependencies & app config" | |
run: composer install --no-progress --no-interaction | |
- name: "Run PHPStan analysis" | |
run: vendor/bin/phpstan analyze | |
Psalm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: "Install PHP w/ Extensions" | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: 8.2 | |
coverage: none | |
- name: "Install Composer dependencies & app config" | |
run: composer install --no-progress --no-interaction | |
- name: Psalm | |
run: vendor/bin/psalm |