1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:54:03 +00:00
tenancy/.github/workflows/lint.yml
2022-06-23 14:26:31 +02:00

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