Skip to content

Commit

Permalink
Add cppcheck workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 24, 2024
1 parent 38005fa commit 404f124
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Code Checks

on:
push:
pull_request:
branches:
- main

jobs:

cppcheck_2004:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Requirements
run: |
sudo apt update
sudo apt install -y cppcheck
- name: Run cppcheck test
run: ./scripts/cppcheck.sh

cppcheck_latest:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Requirements
run: |
sudo apt update
sudo apt install -y cppcheck
- name: Run cppcheck test
run: ./scripts/cppcheck.sh

0 comments on commit 404f124

Please sign in to comment.