Skip to content

Commit 8bd92f5

Browse files
jwiegleykarthink
authored andcommitted
meta: Add GitHub CI workflow to run ERT tests
1 parent 2472faa commit 8bd92f5

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ert.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Emacs ERT Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- uses: purcell/setup-emacs@master
12+
with:
13+
version: '29.4'
14+
15+
- name: Run ERT tests
16+
run: |
17+
git submodule update --init --recursive
18+
cd test
19+
emacs -Q -L .. -L . \
20+
--eval "(progn
21+
(require 'package)
22+
(add-to-list 'package-archives '(\"melpa\" . \"https://melpa.org/packages/\") t)
23+
(add-to-list 'package-archives '(\"gnu\" . \"https://elpa.gnu.org/packages/\") t)
24+
(package-initialize)
25+
(setq package-install-upgrade-built-in t)
26+
(package-refresh-contents)
27+
(package-install 'transient)
28+
;; Verify version
29+
(require 'transient)
30+
(message \"Transient version: %s\" (package-desc-version (package-get-descriptor 'transient)))
31+
(require 'compat)
32+
(message \"Compat version: %s\" (package-desc-version (package-get-descriptor 'compat))))" \
33+
$(find .. -mindepth 1 -maxdepth 1 \
34+
\( -name '.*.el' -prune -o -name '*.el' -type f -printf ' -l %p' \)) \
35+
$(find . -mindepth 1 -maxdepth 1 \
36+
\( -name '.*.el' -prune -o -name '*.el' -type f -printf ' -l %p' \)) \
37+
-l ert --batch -f ert-run-tests-batch-and-exit

0 commit comments

Comments
 (0)