Skip to content

CI Lint

CI Lint #503

Workflow file for this run

name: CI Lint
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip test')"
steps:
- uses: actions/checkout@v2
- name: Checkout submodules 🖥️
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Run clang-format 📋
shell: bash
run: bash scripts/format.sh
- name: Run clang-tidy 🧹
shell: bash
run: bash scripts/tidy.sh