branch: elpa/elfeed
commit b53bac591d364d180ea63b31f77c7dde05991606
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Setup CI
---
 .elpaignore                    |  1 +
 .github/workflows/makefile.yml | 39 +++++++++++++++++++++++++++++++++++++++
 Makefile                       |  6 +++---
 3 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/.elpaignore b/.elpaignore
index b7f5f82b02..70877f57cd 100644
--- a/.elpaignore
+++ b/.elpaignore
@@ -1,4 +1,5 @@
 .elpaignore
+.github
 Makefile*
 UNLICENSE
 tests/
diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml
new file mode 100644
index 0000000000..2f41969a7b
--- /dev/null
+++ b/.github/workflows/makefile.yml
@@ -0,0 +1,39 @@
+name: CI
+
+on:
+  push:
+    paths-ignore:
+      - '**.org'
+  pull_request:
+    paths-ignore:
+      - '**.org'
+  schedule:
+    - cron: "0 7 * * 0"
+
+permissions:
+  contents: read
+
+env:
+  EMACS: emacs -f package-activate-all
+
+jobs:
+  test:
+    name: 'Compile and Test'
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        # See 
https://github.com/purcell/setup-emacs/blob/master/.github/workflows/test.yml
+        emacs-version: [29.1, 30.1, release-snapshot] # 31.1, snapshot
+    steps:
+      - uses: actions/checkout@v6
+        with:
+          persist-credentials: false
+      - uses: purcell/setup-emacs@master
+        with:
+          version: ${{ matrix.emacs-version }}
+      - name: Install Compat
+        run: emacs -Q -batch -eval "(progn (setq 
package-install-upgrade-built-in t) (package-refresh-contents) (package-install 
'compat))"
+      - name: Byte compile all files
+        run: make compile
+      - name: Run compiled tests
+        run: make test
diff --git a/Makefile b/Makefile
index 16f6204435..687327d47c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 .POSIX:
-EMACS   = emacs
+EMACS   ?= emacs
 BATCH   = $(EMACS) -batch -Q -L . -L tests
 
 EL   = elfeed-csv.el elfeed-curl.el elfeed-db.el elfeed-lib.el \
        elfeed-log.el elfeed-show.el elfeed.el xml-query.el     \
-       elfeed-search.el elfeed-tree.el elfeed-link.el
+       elfeed-search.el elfeed-tree.el
 TEST = tests/elfeed-db-tests.el tests/elfeed-lib-tests.el       \
        tests/elfeed-tests.el tests/elfeed-search-tests.el       \
        tests/elfeed-curl-tests.el tests/xml-query-tests.el
@@ -13,7 +13,7 @@ compile: $(EL:.el=.elc) $(TEST:.el=.elc)
 
 check: test
 test: $(EL:.el=.elc) $(TEST:.el=.elc)
-       $(BATCH) -l tests/elfeed-tests.elc -f ert-run-tests-batch
+       $(BATCH) -l tests/elfeed-tests.elc -f ert-run-tests-batch-and-exit
 
 clean:
        rm -f *.tar $(EL:.el=.elc) $(TEST:.el=.elc)

Reply via email to