-
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (23 loc) · 697 Bytes
/
php-cs-fixer.yml
File metadata and controls
28 lines (23 loc) · 697 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
name: PHP-CS-Fixer
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.4']
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: pcre
tools: php-cs-fixer
- name: PHP-CS-Fixer Check
run: |
php-cs-fixer fix -v --dry-run ./src --rules=@PSR12,-blank_line_after_opening_tag
php-cs-fixer fix -v --dry-run ./.tests --rules=@PSR12,-blank_line_after_opening_tag