-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.13 KB
/
Fixer.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
42
43
name: PHP CS Fixer
on:
push:
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, exif, imagick, bcmath, intl
coverage: none
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --ignore-platform-reqs
- name: Run PHP CS Fixer
run: composer fix
- uses: EndBug/add-and-commit@v7 # You can change this to use a specific version.
with:
add: 'app'
message: 'chore(style): Apply PHP CS Fixer changes'