Skip to content

Commit

Permalink
Updates static-analysis.yml, #17
Browse files Browse the repository at this point in the history
  • Loading branch information
rossGardiner committed Apr 4, 2022
1 parent 91fdc15 commit 38445b0
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
- name: Run static analysis for C++ project
uses: JacobDomagala/StaticAnalysis@v0.0.4
name: Static analysis

on:
# Will run on push when merging to 'branches'. The output will be shown in the console
push:
branches:
- static-analysis

jobs:
static_analysis:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup init_script
shell: bash
run: |
echo "#!/bin/bash
setup.sh
build.sh
- name: Run static analysis
uses: JacobDomagala/StaticAnalysis@master
with:
# Exclude any issues found in ${Project_root_dir}/lib
exclude_dir: lib

# Additional script that will be run (sourced) AFTER 'apt_pckgs' and before running Cmake
init_script: setup.sh

# (Optional) clang-tidy args
clang_tidy_args: -checks='*,fuchsia-*,google-*,zircon-*,abseil-*,modernize-use-trailing-return-type'

# (Optional) cppcheck args
cppcheck_args: --enable=all --suppress=missingInclude

0 comments on commit 38445b0

Please sign in to comment.