aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-19 01:11:33 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-19 01:15:40 +0300
commite331c7673916d36ffd38bedd6d62fbf8c3cd837c (patch)
treec9fbb68d11b973bfb4ad73776b9555394cdf0ffb /.github/workflows/ci.yml
parentadd GitHub workflow (diff)
downloadmath-server-e331c7673916d36ffd38bedd6d62fbf8c3cd837c.tar.gz
math-server-e331c7673916d36ffd38bedd6d62fbf8c3cd837c.zip
workflows: add clang-format job
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml14
1 files changed, 13 insertions, 1 deletions
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]