diff options
-rw-r--r-- | .github/workflows/codestyle.yml | 23 | ||||
-rw-r--r-- | .github/workflows/core-build-nopch.yml | 2 | ||||
-rw-r--r-- | .github/workflows/core-build-pch.yml | 2 | ||||
-rw-r--r-- | .github/workflows/core_modules_build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/cpp-check.yml | 27 | ||||
-rw-r--r-- | .github/workflows/sql-codestyle.yml | 8 |
6 files changed, 27 insertions, 37 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 diff --git a/.github/workflows/core-build-nopch.yml b/.github/workflows/core-build-nopch.yml index cff8820def..2c29bd3911 100644 --- a/.github/workflows/core-build-nopch.yml +++ b/.github/workflows/core-build-nopch.yml @@ -22,7 +22,7 @@ jobs: - os: ubuntu-20.04 compiler: gcc10 runs-on: ${{ matrix.os }} - name: ${{ matrix.os }}-${{ matrix.compiler }} + name: ${{ matrix.os }}-${{ matrix.compiler }}-nopch env: COMPILER: ${{ matrix.compiler }} if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft diff --git a/.github/workflows/core-build-pch.yml b/.github/workflows/core-build-pch.yml index 69c8eabd47..7420d2b17a 100644 --- a/.github/workflows/core-build-pch.yml +++ b/.github/workflows/core-build-pch.yml @@ -20,7 +20,7 @@ jobs: - os: ubuntu-20.04 compiler: clang12 runs-on: ${{ matrix.os }} - name: ${{ matrix.os }}-${{ matrix.compiler }} + name: ${{ matrix.os }}-${{ matrix.compiler }}-pch env: COMPILER: ${{ matrix.compiler }} if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft diff --git a/.github/workflows/core_modules_build.yml b/.github/workflows/core_modules_build.yml index 093e43fb42..e610ec9a0d 100644 --- a/.github/workflows/core_modules_build.yml +++ b/.github/workflows/core_modules_build.yml @@ -1,4 +1,4 @@ -name: core-modules-build +name: nopch-build on: push: branches: 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 diff --git a/.github/workflows/sql-codestyle.yml b/.github/workflows/sql-codestyle.yml index 9149fbb698..cfd83fe073 100644 --- a/.github/workflows/sql-codestyle.yml +++ b/.github/workflows/sql-codestyle.yml @@ -1,9 +1,15 @@ -name: SQL Codestyle +name: Codestyle on: pull_request: + paths: + - data/** + - "!README.md" + - "!docs/**" + jobs: triage: runs-on: ubuntu-latest + name: SQL if: github.repository == 'azerothcore/azerothcore-wotlk' steps: - uses: actions/checkout@v4 |