diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 3ebc47f3ad..1672e19c72 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -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 diff --git a/.github/workflows/cpp-check.yml b/.github/workflows/cpp-check.yml deleted file mode 100644 index 1b1a0ff28d..0000000000 --- a/.github/workflows/cpp-check.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: cpp-check -on: - pull_request: - paths: - - src/** - - "!README.md" - - "!docs/**" - -jobs: - cpp-check: - strategy: - fail-fast: false - runs-on: ubuntu-22.04 - if: github.repository == 'azerothcore/azerothcore-wotlk' - name: cpp check - steps: - - uses: actions/checkout@v4 - - name: cpp check - 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