-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 1.06 KB
/
Copy pathphp-cs-fixer.yml
File metadata and controls
39 lines (30 loc) · 1.06 KB
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
name: Code Style
on: [ pull_request, push ]
jobs:
code-style:
runs-on: ubuntu-latest
name: Run code style checks
steps:
- name: Check out the repository
uses: actions/checkout@v7
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv
tools: composer:v2
- name: Register the Composer cache directory
id: composer-cache-files-dir
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v6
with:
path: |
vendor
${{ steps.composer-cache-files-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run PHP CS Fixer
run: vendor/bin/php-cs-fixer fix --diff --dry-run