2024-05-28 11:50:12 +00:00
|
|
|
name: Code Analysis
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-28 11:52:26 +00:00
|
|
|
- master
|
2024-05-28 11:50:12 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install shellcheck cppcheck
|
|
|
|
|
|
|
|
- name: Run shellcheck
|
|
|
|
run: |
|
2024-06-11 09:53:34 +00:00
|
|
|
shellcheck ./releasetools/cdimage.sh ./releasetools/floppyimage.sh ./releasetools/hdimage.sh ./releasetools/image.defaults ./releasetools/image.functions
|
2024-05-28 11:50:12 +00:00
|
|
|
|
|
|
|
- name: Run CppCheck
|
|
|
|
run: |
|
|
|
|
cppcheck -x c --std=c89 --quiet --error-exitcode=2 include sbin bin
|