Skip to content

Commit 59e003a

Browse files
p4v4nbbatsov
authored andcommitted
Setup github actions for linting and tests
- Use emacs29.1 instead of snapshot for lint to fix compat installation issue emacs-compat/compat@c98e141
1 parent 4caa7bb commit 59e003a

File tree

1 file changed

+50
-4
lines changed

1 file changed

+50
-4
lines changed

.github/workflows/lint-emacs.yml

+50-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint Emacs
1+
name: CI
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
paths: ['**.el']
88

99
jobs:
10-
test:
10+
compile:
1111
runs-on: ubuntu-latest
1212
# continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
1313

@@ -25,7 +25,53 @@ jobs:
2525
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
2626

2727
- name: Check out the source code
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
29+
30+
- name: Compile the project
31+
run: make compile
32+
33+
lint:
34+
runs-on: ubuntu-latest
35+
# continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
36+
37+
strategy:
38+
matrix:
39+
emacs_version: ['29.1']
40+
41+
steps:
42+
- name: Set up Emacs
43+
uses: purcell/setup-emacs@master
44+
with:
45+
version: ${{matrix.emacs_version}}
46+
47+
- name: Install Eldev
48+
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
49+
50+
- name: Check out the source code
51+
uses: actions/checkout@v4
2952

3053
- name: Lint the project
31-
run: eldev -dtT -C compile --warnings-as-errors
54+
run: make lint
55+
56+
test:
57+
runs-on: ubuntu-latest
58+
# continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
59+
60+
strategy:
61+
matrix:
62+
emacs_version: ['snapshot']
63+
64+
steps:
65+
- name: Set up Emacs
66+
uses: purcell/setup-emacs@master
67+
with:
68+
version: ${{matrix.emacs_version}}
69+
70+
- name: Install Eldev
71+
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
72+
73+
- name: Check out the source code
74+
uses: actions/checkout@v4
75+
76+
- name: Run tests
77+
run: make test

0 commit comments

Comments
 (0)