Skip to content

Commit 9883c8c

Browse files
committed
Separated Cs-fixer workflow file
1 parent 441813b commit 9883c8c

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/cs-fixer.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PHP CS Fixer
2+
3+
on:
4+
push:
5+
paths:
6+
- '**/*.php'
7+
pull_request:
8+
paths:
9+
- '**/*.php'
10+
11+
jobs:
12+
php-cs-fixer:
13+
name: PHP CS Fixer
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: 8.2
24+
tools: composer
25+
26+
- name: Install dependencies
27+
run: composer install --no-progress --prefer-dist
28+
29+
- name: Run PHP CS Fixer
30+
run: vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes

.github/workflows/ci.yml renamed to .github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: CI Pipeline
22

33
on:
44
push:
5-
branches:
6-
7-
- setup-phpcs-fixer-1954016256
85
pull_request:
96

107
concurrency:
@@ -36,8 +33,5 @@ jobs:
3633
- name: Install dependencies
3734
run: composer install --no-progress --prefer-dist
3835

39-
- name: Check Code Style with PHP CS Fixer
40-
run: vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes
41-
4236
- name: Run Tests without phpunit.xml
4337
run: vendor/bin/phpunit --configuration phpunit.dist.xml

0 commit comments

Comments
 (0)