We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d77a3a commit 3e7693dCopy full SHA for 3e7693d
.github/workflows/ci.yml
@@ -1,4 +1,4 @@
1
-name: CI
+name: Lint and Test
2
3
on:
4
push:
@@ -33,8 +33,13 @@ jobs:
33
- name: PHPCS (PSR-12)
34
run: composer run lint
35
36
- - name: Detect style drift (phpcbf --dry-run)
37
- run: vendor/bin/phpcbf --standard=phpcs.xml --dry-run --no-patch
+ - name: Detect style drift (fail if auto-fixes needed)
+ shell: bash
38
+ run: |
39
+ # Run phpcbf to apply auto-fixes into the working tree
40
+ vendor/bin/phpcbf --standard=phpcs.xml --no-patch || true
41
+ # Fail if any changes were made by phpcbf (style drift)
42
+ git --no-pager diff --name-only --exit-code || { echo "::error ::Style drift detected. Please run phpcbf locally."; exit 1; }
43
44
- name: PHPStan (max level)
45
run: composer run stan
0 commit comments