Skip to content

Commit

Permalink
[CI] Add cppcheck action (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Mar 17, 2024
1 parent 333616f commit 8b3b239
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Cppcheck"

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
check:
name: Perform static code check
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install cppcheck
run:
|
sudo apt-get update
sudo apt-get install -y cppcheck

- name: Run cppcheck
run:
cppcheck src --enable=all --force

0 comments on commit 8b3b239

Please sign in to comment.