DoozyX / clang-format-lint-action

This action checks if the source code matches the .clang-format file.
MIT License
134 stars 51 forks source link

Does it read .clang-format? #29

Closed ales-tsurko closed 3 years ago

ales-tsurko commented 3 years ago

Can't make it to work. Here's the log:

https://github.com/ales-tsurko/io/runs/2884883337?check_suite_focus=true

While .clang-format at the root is:

https://github.com/ales-tsurko/io/blob/master/.clang-format

And the workflow:

https://github.com/ales-tsurko/io/blob/master/.github/workflows/ci.yml

ales-tsurko commented 3 years ago

Ah, I forgot to specify version.

sleepdefic1t commented 2 years ago

For anyone else having issues finding the .clang-format file in project root, adding this line solved it for me:

# .github/workflows/lint-workflow.yml
      ...
      - name: Lint
        uses: DoozyX/clang-format-lint-action@v0.13
        with:
          source: "./src"
          ...
+        inplace: True