branch: elpa/zenburn-theme
commit 212c97c79841a89e146663d2a66b955d64da26e3
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Run the test suite in CI
Add a test job that runs Eldev/Buttercup across the supported Emacs
versions, and surface build status with a CI badge in the README.
---
.github/workflows/ci.yml | 16 ++++++++++++++++
README.md | 1 +
2 files changed, 17 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index baacb27d88..d217d4f7d3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,3 +24,19 @@ jobs:
-f batch-byte-compile zenburn-theme.el
- name: Load theme
run: emacs --batch -L . -l zenburn-theme.el
+
+ test:
+ runs-on: ubuntu-latest
+ continue-on-error: ${{ matrix.emacs-version == 'snapshot' }}
+ strategy:
+ matrix:
+ emacs-version: ['27.2', '28.2', '29.4', '30.1', 'snapshot']
+ steps:
+ - uses: actions/checkout@v4
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs-version }}
+ - name: Install Eldev
+ run: curl -fsSL
https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
+ - name: Run tests
+ run: eldev -dtT buttercup
diff --git a/README.md b/README.md
index 89d66a8dbf..420c971443 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
# zenburn-theme for Emacs
+[](https://github.com/bbatsov/zenburn-emacs/actions/workflows/ci.yml)
[![License GPL 3][badge-license]](https://www.gnu.org/licenses/gpl-3.0.txt)
[](https://melpa.org/#/zenburn-theme)
[](https://stable.melpa.org/#/zenburn-theme)