ref: e98485da3f59aff7ebeb6095940b9574935e889f
parent: 6528a955fee82f5e96666b4beb2a7de519734c0b
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Sep 21 22:59:38 EDT 2020
Make code style errors fail their CI job Mimics the behavior of the old Travis script
--- a/.github/workflows/checkpatch.yml
+++ b/.github/workflows/checkpatch.yml
@@ -21,4 +21,5 @@
- 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