Allows the player to use a random bot as ATM #523
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codestyle | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
lint: | |
name: "clang-format-always-success" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Playerbot Module | |
uses: actions/checkout@v4 | |
- name: Install clang-format | |
run: sudo apt-get install clang-format -y | |
- name: Run clang-format | |
run: | | |
# Find all C/C++ source files | |
FILES=$(find . -name "*.h" -o -name "*.cpp" -o -name "*.c" -o -name "*.hpp") | |
# Run clang-format in dry-run mode to check for formatting issues | |
clang-format -i $FILES | |
# Check if there are any formatting changes | |
git diff --exit-code | |
shell: bash | |
continue-on-error: true |