Skip to content

Commit

Permalink
GitHub Actions CI: Check formatting with clang-format
Browse files Browse the repository at this point in the history
This uses a docker image for Ubuntu 20.04 because that has
clang-format-10.
  • Loading branch information
murraycu committed Apr 26, 2020
1 parent d28d553 commit c67670c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/clang-format-check.yml
@@ -0,0 +1,19 @@
name: "CI: Check Code Formatting"

on: [push]

jobs:
build:

runs-on: ubuntu-latest
container: ubuntu:20.04

steps:
- uses: actions/checkout@v1
- name: Check Code Formatting
run: |
apt update
apt install mm-common clang-format-10 --yes
alias clang-format="clang-format-10"
./autogen.sh --enable-warnings=fatal
make check-format

0 comments on commit c67670c

Please sign in to comment.