add auto-commit for linted files #57
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: Continuous Integration | |
on: ['push', 'pull_request'] | |
jobs: | |
continuous-integration: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 #match with project | |
tools: composer:v2, povils/phpmnd, laravel/pint, larastan/larastan | |
coverage: none | |
- name: Install Dependencies | |
run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
- name: PHP Magic Number Detector | |
run: vendor/bin/phpmnd . --exclude tests | |
- name: Pint | |
run: pint | |
- name: PHPStan | |
run: phpstan analyse app/ --error-format=github |