From 2a54acce30a36e5203b6551c7318cf4c043b14b5 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 18 Dec 2019 01:44:14 -0500 Subject: [PATCH] Add lint workflow for GitHub actions --- .github/workflows/lint.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..3549c2e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: lint +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: DoozyX/clang-format-lint-action@v0.5 + with: + source: '.' + extensions: 'h,c,cpp' + clangFormatVersion: 9