Skip to content

Commit 3d23e7d

Browse files
committed
Add a CS check in the CI
1 parent 9c7ddee commit 3d23e7d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ jobs:
2929
run: composer update --ansi --no-progress --prefer-dist --no-interaction
3030
- run: vendor/bin/phpstan analyze
3131

32+
coding_standards:
33+
name: Coding standards
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- uses: shivammathur/setup-php@v2
38+
with:
39+
coverage: none
40+
php-version: '8.1'
41+
- name: Install dependencies
42+
run: composer update --ansi --no-progress --prefer-dist --no-interaction
43+
- run: vendor/bin/php-cs-fixer fix --dry-run --show-progress=dots --no-interaction
44+
3245
tests:
3346
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
3447
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)