Skip to content

Commit

Permalink
Add clang-format lint check to CI (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasalvavida committed Jul 4, 2020
1 parent 8baac51 commit 4043a37
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ jobs:
- run: pip install cpplint
- run: cpplint --recursive .

clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.6
with:
style: Google

build-windows:
name: build-windows
runs-on: windows-latest
needs: cpplint
needs: [cpplint, clang-format]

steps:
- name: Checkout
Expand Down Expand Up @@ -85,7 +93,7 @@ jobs:
build-linux:
name: build-linux
runs-on: ubuntu-latest
needs: cpplint
needs: [cpplint, clang-format]

steps:
- uses: actions/setup-node@v1
Expand Down Expand Up @@ -164,7 +172,7 @@ jobs:
build-osx:
name: build-osx
runs-on: macos-latest
needs: cpplint
needs: [cpplint, clang-format]

steps:
- name: Checkout
Expand Down

0 comments on commit 4043a37

Please sign in to comment.