Skip to content

Commit

Permalink
CI for clang format
Browse files Browse the repository at this point in the history
Change-Id: I0e122cfc6873de830b35bcd482b4029fddbc2e04
  • Loading branch information
Javier-varez committed Mar 7, 2021
1 parent 1f3fe98 commit 309133d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,22 @@ jobs:
name: manifest
path: manifest.xml

clang_format:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: Javier-varez/google-repo-action@v0.3
with:
manifest-url: 'Javier-varez/manifest'
manifest-group: 'postform'
checkout-deps: true
- name: clang-format lint
uses: DoozyX/clang-format-lint-action@v0.11
with:
source: 'postform'
clangFormatVersion: 10

system_test:
runs-on: ubuntu-latest
needs: [ cargo_build, libpostform_build ]
Expand Down
1 change: 1 addition & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ You don't necessarily have to contribute just with pull requests. Any other kind
* Global variables that are not marked as static shall have a `g_` prefix.
* Static global variables use `s_` as a prefix.
* Use `camelCase` instead of `PascalCase` for methods.
* C++ code should be formatted with clang-format version 10.

1 change: 0 additions & 1 deletion libpostform/inc/postform/shared_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ struct Config {
} // namespace Postform

#endif // POSTFORM_SHARED_TYPES_H_

0 comments on commit 309133d

Please sign in to comment.