-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (22 loc) · 940 Bytes
/
php-cs-fixer.yaml
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
name: PHP-CS-Fixer
on: [ push, pull_request ]
env:
PHP_CS_FIXER_IGNORE_ENV: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Install PHP CS Fixer
working-directory: ./vendor-bin/php-cs-fixer
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHP CS Fixer
run: vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none