From 7471f46a0768e1b5a646d48d5c2cefb8dbc3f7af Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 11 Feb 2020 00:50:04 +0100 Subject: [PATCH] Add checkpatch testing --- .github/workflows/checkpatch.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/checkpatch.yml diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml new file mode 100644 index 00000000..e6cc6402 --- /dev/null +++ b/.github/workflows/checkpatch.yml @@ -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