fix pint and stan analyzer #7
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
# Sample workflow for validating and linting PHP code with PHP Mess Detector | |
name: PHPMD | |
on: | |
push: | |
branches: | |
- 'Feature/*' | |
jobs: | |
phpstan: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
composer- | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
tools: composer | |
- name: Install dependencies | |
run: composer install | |
- name: Run PHPStan | |
run: composer phpmd |