Skip to content

Commit 603c6b9

Browse files
author
Влaдислaв Новиков
committed
Fix cs github-action
1 parent 6b77cd4 commit 603c6b9

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/cs.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
on:
2-
push:
3-
branches:
4-
- '*'
1+
name: PHP-CS-Fixer Check
52

6-
name: Check Code Style
3+
on: [push, pull_request]
74

85
jobs:
9-
cs-check:
10-
uses: spiral/gh-actions/.github/workflows/cs.yml@master
11-
with:
12-
os: >-
13-
['ubuntu-latest']
6+
phpcsfixer:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.1'
16+
17+
- name: Install dependencies
18+
run: composer install --no-progress --no-suggest --prefer-dist
19+
20+
- name: Run PHP-CS-Fixer dry run
21+
run: |
22+
vendor/bin/php-cs-fixer fix --dry-run -v --diff

0 commit comments

Comments
 (0)