-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 897 Bytes
/
php-cs-fixer.yml
File metadata and controls
42 lines (34 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Code Style
on:
push:
branches:
- 'v1'
- 'v2'
- 'v3'
pull_request:
branches:
- '*'
permissions:
contents: write
concurrency:
group: ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Dependencies
run: |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHP CS Fixer
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 🪄 Code Style Fixes
commit_options: '--no-verify'