StupidOS/.github/workflows/analyze.yml

27 lines
616 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 ./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