branch: elpa/clojure-ts-mode
commit 54a69be9cd6c9bf99b982d6afea287f6a766e762
Author: Bozhidar Batsov <bozhi...@batsov.dev>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Use eldev to lint the project
    
    Useful for finding errors and warnings in the code.
---
 .github/workflows/lint-emacs.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.github/workflows/lint-emacs.yml b/.github/workflows/lint-emacs.yml
new file mode 100644
index 0000000000..872a12568a
--- /dev/null
+++ b/.github/workflows/lint-emacs.yml
@@ -0,0 +1,31 @@
+name: Lint Emacs
+
+on:
+  push:
+    paths: ['**.el']
+  pull_request:
+    paths: ['**.el']
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    # continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
+
+    strategy:
+      matrix:
+        emacs_version: ['snapshot']
+
+    steps:
+    - name: Set up Emacs
+      uses: purcell/setup-emacs@master
+      with:
+        version: ${{matrix.emacs_version}}
+
+    - name: Install Eldev
+      run: curl -fsSL 
https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
+
+    - name: Check out the source code
+      uses: actions/checkout@v2
+
+    - name: Lint the project
+      run: eldev -dtT -C compile --warnings-as-errors

Reply via email to