summaryrefslogtreecommitdiff
path: root/.github/workflows/codestyle.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/codestyle.yml')
-rw-r--r--.github/workflows/codestyle.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml
index e56b1de2bb..ce72ed58f7 100644
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -1,16 +1,27 @@
name: Codestyle
on:
pull_request:
+ paths:
+ - src/**
+ - "!README.md"
+ - "!docs/**"
jobs:
triage:
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-20.04]
- runs-on: ${{ matrix.os }}
+ runs-on: ubuntu-latest
+ name: C++
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