aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 5680873555f..39809b88deb 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -34,4 +34,7 @@ jobs:
- name: Install dependencies
run: composer i
- name: Run coding standards check
- run: composer run cs:check -- --format=checkstyle | cs2pr
+ run: |
+ composer run cs:check -- --format=checkstyle | cs2pr
+ composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
+ shell: bash {0}