Skip to content

Commit

Permalink
Add board header check
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Nov 14, 2024
1 parent 1b64cac commit 57082b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Generic Check Scripts
on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Check Board Headers
run: |
./tools/check_all_board_headers.sh
3 changes: 2 additions & 1 deletion tools/check_all_board_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
for HEADER in src/boards/include/boards/*.h; do
tools/check_board_header.py $HEADER
if [[ $? -ne 0 ]]; then
break
echo "ERROR: $HEADER failed validation"
echo ""
fi
done

0 comments on commit 57082b6

Please sign in to comment.