-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 870 Bytes
/
php-cs-fixer.yml
File metadata and controls
41 lines (33 loc) · 870 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
name: PHP CS Fixer
on:
push:
pull_request:
branches:
- main
concurrency:
group: php-cs-fixer-${{ github.ref_name || github.run_id }}
cancel-in-progress: true
jobs:
php-cs-fixer:
name: PHP CS Fixer ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: cs2pr
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--no-progress --prefer-dist --optimize-autoloader"
- name: php-cs-fixer
run: composer run style:check -- --format=checkstyle | cs2pr