branch: elpa/simple-httpd
commit e8551dca4f2009e332285228cb971f8594aca1c7
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Add CI
---
.elpaignore | 5 +++++
.github/workflows/test.yml | 39 +++++++++++++++++++++++++++++++++++++++
Makefile | 2 +-
3 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/.elpaignore b/.elpaignore
new file mode 100644
index 0000000000..bb1cc48962
--- /dev/null
+++ b/.elpaignore
@@ -0,0 +1,5 @@
+*-test.el
+.elpaignore
+.github
+Makefile
+UNLICENSE
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..2f41969a7b
--- /dev/null
+++ b/.github/workflows/test.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 a658236a57..3b7a1fe77d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.POSIX:
-EMACS = emacs
+EMACS ?= emacs
BATCH = $(EMACS) -batch -Q -L .
compile: simple-httpd.elc simple-httpd-test.elc