mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add checkpatch testing
This commit is contained in:
17
.github/workflows/checkpatch.yml
vendored
Normal file
17
.github/workflows/checkpatch.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: "Code style checking"
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checkpatch:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up checkpatch
|
||||||
|
run: |
|
||||||
|
wget 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl'
|
||||||
|
chmod +x checkpatch.pl
|
||||||
|
touch const_structs.checkpatch
|
||||||
|
touch spelling.txt
|
||||||
|
- name: Checkpatch
|
||||||
|
run: |
|
||||||
|
make checkpatch CHECKPATCH=./checkpatch.pl
|
||||||
Reference in New Issue
Block a user