-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (29 loc) · 830 Bytes
/
codequality.yml
File metadata and controls
35 lines (29 loc) · 830 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
name: CodeQuality
on:
push:
branches:
- '**'
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT }}
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: php-cs-fixer:3.22.0
- name: Code Reformatting...
run: php-cs-fixer fix -v --allow-risky=yes --config=./.php-cs-fixer.php
- name: Commit Reformated Code
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref }}
commit_author: lanlin <lanlin1987@github.com>
commit_message: code reformat workflow
commit_user_name: lanlin
commit_user_email: lanlin1987@gmail.com