test #5
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: Automatic linter | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.3] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, gmp, intl, json, mysql, readline, sodium, bcmath, pcov | |
tools: composer:v2 | |
- name: Install Laravel Pint and Rector | |
run: | | |
composer global require laravel/pint rector/rector | |
- name: Run Rector | |
run: composer global exec rector process --config $GITHUB_WORKSPACE/rector.php | |
- name: Run Laravel Pint | |
run: composer global exec pint --config $GITHUB_WORKSPACE/pint.json | |
- name: Commit linted files | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Automatic linter" |