aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-02-01 16:27:53 -0300
committerBarichello <artur@barichello.me>2022-02-03 22:05:37 -0300
commite9f93ba2e8b9df280aed20131a1606d731d2dbbe (patch)
treeea37f5df2afa6427956e849b7300bc11cfdedf74
parent02bcf4d9b16ff3a4c78bcb1330a3f0d781ce1ab8 (diff)
downloadNorthstarLauncher-e9f93ba2e8b9df280aed20131a1606d731d2dbbe.tar.gz
NorthstarLauncher-e9f93ba2e8b9df280aed20131a1606d731d2dbbe.zip
Add format-check ci stage
-rw-r--r--.clang-format3
-rw-r--r--.github/workflows/ci.yml12
2 files changed, 14 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index cdea6de7..b55085ef 100644
--- a/.clang-format
+++ b/.clang-format
@@ -13,4 +13,5 @@ ColumnLimit: 140
BreakBeforeBraces: Allman
AlignAfterOpenBracket: AlwaysBreak
IndentExternBlock: Indent
-PointerAlignment: Left \ No newline at end of file
+PointerAlignment: Left
+SortIncludes: false \ No newline at end of file
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c7a8d832..9011329d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -31,3 +31,15 @@ jobs:
x64/${{ env.BUILD_PROFILE }}/*.exe
x64/${{ env.BUILD_PROFILE }}/*.pdb
x64/${{ env.BUILD_PROFILE }}/*.txt
+
+ format-check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: DoozyX/clang-format-lint-action@v0.13
+ with:
+ source: 'NorthstarDedicatedTest LauncherInjector'
+ exclude: 'NorthstarDedicatedTest/include loader_launcher_proxy loader_wsock32_proxy'
+ extensions: 'h,cpp'
+ clangFormatVersion: 13
+ style: file