diff options
author | Thomas Haller <thaller@redhat.com> | 2023-07-25 12:55:52 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-25 13:34:49 (GMT) |
commit | ee2876e3ad60bf316a897b48a0d0b84fab2adb0d (patch) | |
tree | 2ce22b8b5f249268e362dbbdc35fb99daacb2d01 | |
parent | 45c7aae37960ac973afb69d3fd9b91694972b68c (diff) | |
download | libnl-ee2876e3ad60bf316a897b48a0d0b84fab2adb0d.zip libnl-ee2876e3ad60bf316a897b48a0d0b84fab2adb0d.tar.gz libnl-ee2876e3ad60bf316a897b48a0d0b84fab2adb0d.tar.bz2 |
github: add test for checking clang-format style
Also relevant, the actual formatting depends on the version of
clang-format. Which is somewhat cumbersome.
The authoritative version is the one from our github action, which
currently is the one from Fedora 38.
-rw-r--r-- | .github/workflows/ci.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3457095..fb71c30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,29 @@ on: pull_request: jobs: + clang-format: + runs-on: ubuntu-latest + container: + image: fedora:38 + steps: + - name: Install packages + run: | + sudo dnf install -y \ + clang-tools-extra \ + git + + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Setup git + run: | + git config --global --add safe.directory "$PWD" + + - name: Formatting with clang-format + run: | + clang-format --version + ./tools/clang-format.sh + ci: strategy: matrix: |