mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
29 lines
606 B
YAML
29 lines
606 B
YAML
name: Lint
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
php-cs-fixer:
|
|
name: PHP CS Fixer
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.1'
|
|
coverage: none
|
|
|
|
- name: Install PHP CS Fixer
|
|
run: composer global require friendsofphp/php-cs-fixer
|
|
|
|
- name: Run PHP CS Fixer
|
|
run: php-cs-fixer fix
|
|
|
|
- name: Commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: Fix styling
|