-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 1.3 KB
/
php-cs-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 ]
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpcs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ '7.4' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
extensions: ast
- name: Install Composer deps
uses: ramsey/composer-install@v2
with:
composer-options: --no-scripts
- name: Install Composer bin PHP CS Fixer
uses: ramsey/composer-install@v2
with:
working-directory: './vendor-bin/phpcs'
- name: Run PHP CS Fixer
run: |
./vendor-bin/phpcs/vendor/bin/php-cs-fixer fix --allow-risky yes --dry-run -v