mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:54:03 +00:00
added php-cs-fixer
This commit is contained in:
parent
9edf139be0
commit
f098eb90b6
3 changed files with 16 additions and 29 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -26,3 +26,19 @@ jobs:
|
||||||
run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}"
|
run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./test
|
run: ./test
|
||||||
|
|
||||||
|
php-cs-fixer:
|
||||||
|
name: Code style (php-cs-fixer)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install php-cs-fixer
|
||||||
|
run: composer global require friendsofphp/php-cs-fixer
|
||||||
|
- name: Run php-cs-fixer
|
||||||
|
run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php
|
||||||
|
- name: Commit changes from php-cs-fixer
|
||||||
|
uses: EndBug/add-and-commit@v5
|
||||||
|
with:
|
||||||
|
author_name: "PHP CS Fixer"
|
||||||
|
author_email: "samuel@archte.ch"
|
||||||
|
message: Fix code style (php-cs-fixer)
|
||||||
|
|
|
||||||
29
.github/workflows/lint.yml
vendored
29
.github/workflows/lint.yml
vendored
|
|
@ -1,29 +0,0 @@
|
||||||
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