Skip to content

Commit

Permalink
Added workflow for stylechecks
Browse files Browse the repository at this point in the history
clang-format script is run with --dry-run parameter to avoid changes
checkpatch.pl parametrization is standard for Linux kernel
  • Loading branch information
klogg authored May 10, 2024
1 parent a6b0ea9 commit db7ad1f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/codingstyle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check coding style

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install clang-format
- name: Run check
run: scripts/clang-format.sh --dry-run

checkpatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run check
run: scripts/checkpatch.sh

0 comments on commit db7ad1f

Please sign in to comment.