From be0d4b9681432c61e42b44c624591e98826801b4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 8 Apr 2020 23:49:43 +0100 Subject: [PATCH] github action: check coding style of commits Signed-off-by: Yuxuan Shui --- .github/workflows/coding-style.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/coding-style.yml diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml new file mode 100644 index 00000000..a482113d --- /dev/null +++ b/.github/workflows/coding-style.yml @@ -0,0 +1,14 @@ +name: code-style +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - uses: yshui/git-clang-format-lint@v1.7 + with: + base: ${{ github.event.ref }}~1