mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
* chore(CI): Make some changes. Less CI's maybe better... * pendingsql * FORK TEST - TO BE REVERTED * changes * test * fix * Revert "FORK TEST - TO BE REVERTED" This reverts commit 875bc281c5a355cce2ddd8015484e256dbc185cf. * rename workflow * rename workflow * rename workflow * rename workflow * I argue windows don't need dry runs * maybe mac wants to be alive. who knows. When do we drop mac support really...?
28 lines
678 B
YAML
28 lines
678 B
YAML
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
|