From 103f6b9fadaf0e902813862fce43bae2987145bd Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:06:33 +0000 Subject: [PATCH] add clang static analyzer --- .github/workflows/clang_static_analyzer.yml | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/clang_static_analyzer.yml diff --git a/.github/workflows/clang_static_analyzer.yml b/.github/workflows/clang_static_analyzer.yml new file mode 100644 index 00000000..841546a5 --- /dev/null +++ b/.github/workflows/clang_static_analyzer.yml @@ -0,0 +1,28 @@ +name: CLang Static Analyzer + +on: + push: + paths-ignore: + - 'doc/**' + branches-ignore: + - 'backport**' + - 'dependabot**' + pull_request: + paths-ignore: + - 'doc/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + + clang_static_analyzer: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Run + run: docker run --rm -v $PWD:$PWD ubuntu:22.04 sh -c "cd $PWD && apt update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sudo software-properties-common && DEBIAN_FRONTEND=noninteractive sh ./ci/travis/csa_common/before_install.sh && sh ./ci/travis/csa_common/install.sh && sh ./ci/travis/csa_common/script.sh" \ No newline at end of file