Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/CodeFormatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Code Formatting

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install clang-format
run: sudo apt-get install -y clang-format

- name: Run clang-format and check for formatting issues
run: |
find . -name "*.cpp" -o -name "*.hpp" | xargs clang-format -i

- name: Commit formatting changes
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add .
git commit -m "Apply code formatting changes" || echo "No changes to commit"
continue-on-error: true
23 changes: 23 additions & 0 deletions .github/workflows/StaticCodeAnalysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Static Code Analysis

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Cppcheck
run: sudo apt-get install -y cppcheck

- name: Run Cppcheck
run: |
cppcheck --enable=all --inconclusive --quiet --suppress=missingIncludeSystem . 2> cppcheck-results.txt
cat cppcheck-results.txt
continue-on-error: true
Loading