-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 898 Bytes
/
lint.yml
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
name: Lint
on:
pull_request:
branches:
- stage
types:
- opened
- synchronize
- reopened
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
tools: composer
- name: Install php-cs-fixer
run: composer require --dev friendsofphp/php-cs-fixer
- name: Run php-cs-fixer
run: vendor/bin/php-cs-fixer fix
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: fix code style"
commit_options: "--no-verify"
commit_user_name: "GitHub Actions"
commit_user_email: "github-actions[bot]@users.noreply.github.com"