diff --git a/.github/workflows/codingstyle.yml b/.github/workflows/codingstyle.yml index 8f64653f..30e21ca7 100644 --- a/.github/workflows/codingstyle.yml +++ b/.github/workflows/codingstyle.yml @@ -7,9 +7,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 + - name: Install cpplint + run: pip install cpplint + - name: Check coding style + run: | + cpplint --recursive --quiet --verbose=3 . 2> tmp - name: Comment Pull Request uses: thollander/actions-comment-pull-request@1.0.1 + if: ${{ failure() && github.event_name == 'pull_request' }} with: - message: 'Example of message !' + message: ${{ cat tmp }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file