]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add linter workflow for whitespace errors. zlib-ng/zlib-ng#1190
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 26 Dec 2023 21:33:45 +0000 (13:33 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 29 Dec 2023 14:51:46 +0000 (15:51 +0100)
.github/workflows/lint.yml [new file with mode: 0644]

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644 (file)
index 0000000..f279d4c
--- /dev/null
@@ -0,0 +1,17 @@
+name: Lint
+on: [pull_request]
+
+jobs:
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v4
+      with:
+        fetch-depth: 0
+
+    - name: Whitespace errors
+      run: |
+        git config core.whitespace tab-in-indent,blank-at-eol
+        git diff --color --check ${{ github.event.pull_request.base.sha }}