From 7c9ba91c89b0da6cbf026499f4a7b316cef83cfc Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Fri, 5 Jul 2024 19:03:09 -0700 Subject: [PATCH] adding C/C++ linter to CI workflow --- .github/workflows/aes_ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/aes_ci.yml b/.github/workflows/aes_ci.yml index dc82dfc..8b03e1d 100644 --- a/.github/workflows/aes_ci.yml +++ b/.github/workflows/aes_ci.yml @@ -16,10 +16,37 @@ name: Repo Integration on: [push] jobs: +# ---------------------------------------------------------------------------- + test_and_document: + name: Test And Generate Documentation + runs-on: ubuntu-22.04 + steps: + + # This step checks out a copy of your repository. + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install python3 python3-pip + python -m pip install --upgrade pip + pip install cpplint + + # C/C++ Linter + - name: C/C++ Linter + run: | + find . -name '*.h' -o -name '*.cpp' -o -name '*.c' | xargs cpplint # ---------------------------------------------------------------------------- gen_release: + needs: [test_and_document] uses: slaclab/ruckus/.github/workflows/gen_release.yml@main with: version: '1.0.0'