Skip to content

Merge pull request #20 from kenohassler/build-cleanup #28

Merge pull request #20 from kenohassler/build-cleanup

Merge pull request #20 from kenohassler/build-cleanup #28

Workflow file for this run

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