mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 05:24:04 +00:00
install PHP CS Fixer
This commit is contained in:
parent
cc6d4fe0dd
commit
f498daacc2
3 changed files with 204 additions and 0 deletions
29
.github/workflows/lint.yml
vendored
Normal file
29
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue