From e331c7673916d36ffd38bedd6d62fbf8c3cd837c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 19 Jan 2021 01:11:33 +0300 Subject: workflows: add clang-format job --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c35ccf..0b9fb88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,18 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-18.04 + name: Linting + if: github.ref == 'refs/heads/master' + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Run clang-format + run: ./cmake/tools/clang-format.py --clang-format clang-format-9 + build: strategy: matrix: @@ -82,7 +94,7 @@ jobs: run: make compose/build publish: - needs: [native, compose] + needs: [lint, native, compose] strategy: matrix: project: [client, server] -- cgit v1.2.3