Merge pull request #20 from kenohassler/build-cleanup #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Enforce consistent formatting | |
on: push | |
jobs: | |
clang-format: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt install -y clang-format | |
- name: Run clang-format | |
run: ./clang-format.sh | |
- name: Return an exit code if the code doesn't match the clang-format | |
# git diff returns error code 1 if there are differences | |
run: git diff --exit-code || exit 1 |