From 8ea18ada167d2282419357c273f9253c0e759f78 Mon Sep 17 00:00:00 2001 From: Pranav Date: Sat, 16 Jul 2022 21:55:50 +0200 Subject: [PATCH] clang-tidy-review Workflow for suggesstions using clang-tidy --- .github/workflows/clang-tidy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/clang-tidy.yaml diff --git a/.github/workflows/clang-tidy.yaml b/.github/workflows/clang-tidy.yaml new file mode 100644 index 0000000000..03e8092c47 --- /dev/null +++ b/.github/workflows/clang-tidy.yaml @@ -0,0 +1,20 @@ +name: clang-tidy-review +on: [pull_request] + +jobs: + build: + name: clang-tidy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - uses: ZedThree/clang-tidy-review@v0.9.0 + id: review + with: + apt_packages: 'cmake,ninja-build,python3,g++,gettext,qtbase5-dev,libqt5svg5-dev,libkf5archive-dev,liblua5.3-dev,libsqlite3-dev,libsdl2-mixer-dev' + + # Tell clang-tidy-review the build directory, so it finds the + # compilation database. + build_dir: build