mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make code style errors fail their CI job
Mimics the behavior of the old Travis script
This commit is contained in:
3
.github/workflows/checkpatch.yml
vendored
3
.github/workflows/checkpatch.yml
vendored
@@ -21,4 +21,5 @@ jobs:
|
||||
- name: Checkpatch
|
||||
working-directory: rgbds
|
||||
run: |
|
||||
make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q=
|
||||
make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q= | tee log
|
||||
if grep -q ERROR: log; then exit 1; else exit 0; fi
|
||||
|
||||
Reference in New Issue
Block a user