]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
build.yaml: Add Clang-Format step
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 23 Aug 2020 14:12:48 +0000 (16:12 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 23 Aug 2020 14:23:33 +0000 (16:23 +0200)
.github/workflows/build.yaml

index c8eaf393f6808e8dbd4c6d18a3696d5235e209de..f1c91f432f1cbcb79e3f96aaa08b5314add33507 100644 (file)
@@ -235,3 +235,19 @@ jobs:
       with:
         name: ${{ matrix.config.name }} - testdir.tar.xz
         path: testdir.tar.xz
+
+  check_format:
+    name: Check code formatting
+    runs-on: ubuntu-20.04
+    strategy:
+      fail-fast: false
+    steps:
+      - name: Get source
+        uses: actions/checkout@v2
+
+      # Job 17: Run Clang-Format in check mode
+      - name: Run Clang-Format in check mode
+        run: misc/format-files --all --check
+        continue-on-error: true
+        env:
+          VERBOSE: 1