summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2023-11-27 23:17:02 +0100
committerGitHub <noreply@github.com>2023-11-27 23:17:02 +0100
commitfb2924a9b3bf6d7689d55ca733ec6ef5e2e292f4 (patch)
tree70885b4d7b0307a0ecb5869b5f2c994a2acb4105
parentd2aabdbc7ece1958a3452a036174b22316411b6d (diff)
chore(CI): rename CI to easier determain which is which (#17879)
* chore(CI): rename CI to easier determain which is which * small change * Update codestyle.yml * codestyle checks changes * test to see if this works * revert this, just to check that CI works * Revert "revert this, just to check that CI works" This reverts commit ad03c6bdd9bb33faf8ee1c8d1571090bd4ced531. * Update core_modules_build.yml
-rw-r--r--.github/workflows/codestyle.yml23
-rw-r--r--.github/workflows/core-build-nopch.yml2
-rw-r--r--.github/workflows/core-build-pch.yml2
-rw-r--r--.github/workflows/core_modules_build.yml2
-rw-r--r--.github/workflows/cpp-check.yml27
-rw-r--r--.github/workflows/sql-codestyle.yml8
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