From 87cc9104ded46fcb93a81d467968014ff4c24901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 22 Aug 2020 10:37:58 +0200 Subject: [PATCH] ci: Add a PR lint workflow --- .github/workflows/lint_pr.yml | 12 ++++++++++++ src/KingSystem/Utils/Debug.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint_pr.yml diff --git a/.github/workflows/lint_pr.yml b/.github/workflows/lint_pr.yml new file mode 100644 index 00000000..58ecc968 --- /dev/null +++ b/.github/workflows/lint_pr.yml @@ -0,0 +1,12 @@ +name: lint_pr +on: pull_request +jobs: + clang-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.8 + with: + source: 'src' + exclude: 'lib' + clangFormatVersion: 10 diff --git a/src/KingSystem/Utils/Debug.h b/src/KingSystem/Utils/Debug.h index a80b02d0..72e4ab5b 100644 --- a/src/KingSystem/Utils/Debug.h +++ b/src/KingSystem/Utils/Debug.h @@ -6,4 +6,4 @@ namespace ksys::util { inline void PrintDebug([[maybe_unused]] const sead::SafeString& message) {} -} +} // namespace ksys::util