Skip to content

Commit 54a69be

Browse files
committed
Use eldev to lint the project
Useful for finding errors and warnings in the code.
1 parent b26d46e commit 54a69be

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: .github/workflows/lint-emacs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint Emacs
2+
3+
on:
4+
push:
5+
paths: ['**.el']
6+
pull_request:
7+
paths: ['**.el']
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
# continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
13+
14+
strategy:
15+
matrix:
16+
emacs_version: ['snapshot']
17+
18+
steps:
19+
- name: Set up Emacs
20+
uses: purcell/setup-emacs@master
21+
with:
22+
version: ${{matrix.emacs_version}}
23+
24+
- name: Install Eldev
25+
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
26+
27+
- name: Check out the source code
28+
uses: actions/checkout@v2
29+
30+
- name: Lint the project
31+
run: eldev -dtT -C compile --warnings-as-errors

0 commit comments

Comments
 (0)