StupidOS/.github/workflows/analyze.yml

27 lines
629 B
YAML
Raw Normal View History

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: |
shellcheck ./build.sh ./releasetools/cdimage.sh ./releasetools/floppyimage.sh ./releasetools/hdimages.sh ./releasetools/image.defaults ./releasetools/images.functions
- name: Run CppCheck
run: |
cppcheck -x c --std=c89 --quiet --error-exitcode=2 include sbin bin