about summary refs log tree commit diff
path: root/.github/workflows/editorconfig.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/editorconfig.yml')
-rw-r--r--.github/workflows/editorconfig.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml
new file mode 100644
index 000000000000..ae21ac43c03e
--- /dev/null
+++ b/.github/workflows/editorconfig.yml
@@ -0,0 +1,20 @@
+name: editorconfig
+
+on:
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  editorconfig:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+    - uses: technote-space/get-diff-action@v1.2.8
+    - name: fetch image
+      run: docker pull mstruebing/editorconfig-checker
+    - name: editorconfig check
+      run: |
+        docker run --volume="$PWD":/check mstruebing/editorconfig-checker ec \
+          -disable-indentation \
+          ${{ env.GIT_DIFF }}