codestyle checks changes
This commit is contained in:
12
.github/workflows/codestyle.yml
vendored
12
.github/workflows/codestyle.yml
vendored
@@ -9,5 +9,15 @@ jobs:
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check core codestyle
|
||||
- name: AzerothCore codestyle
|
||||
run: source ./apps/ci/ci-codestyle.sh
|
||||
- name: C++ Advanced
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install -y cppcheck
|
||||
cppcheck --force --inline-suppr --suppressions-list=./.suppress.cppcheck src/ --output-file=report.txt
|
||||
|
||||
if [ -s report.txt ]; then # if file is not empty
|
||||
cat report.txt
|
||||
exit 1 # let github action fails
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user