-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 918 Bytes
/
php-cs-fixer.yaml
File metadata and controls
40 lines (33 loc) · 918 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
name: php-cs-fixer
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.2']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
run: composer install -o
- name: Run php-cs-fixer tool
run: vendor/bin/php-cs-fixer fix --dry-run --diff