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
This commit is contained in:
Kitzunu
2023-11-27 23:17:02 +01:00
committed by GitHub
parent d2aabdbc7e
commit fb2924a9b3
6 changed files with 27 additions and 37 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,4 +1,4 @@
name: core-modules-build
name: nopch-build
on:
push:
branches:

View File

@@ -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

View File

@@ -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