[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haml-mode 6e93932061 2/4: Add simple CI with Actions (byte
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haml-mode 6e93932061 2/4: Add simple CI with Actions (byte-compile, package-lint) |
Date: |
Thu, 8 Jun 2023 16:01:59 -0400 (EDT) |
branch: elpa/haml-mode
commit 6e93932061ee0ab98e8f3746333e0c805da5e45e
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Add simple CI with Actions (byte-compile, package-lint)
---
.github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++
Makefile | 28 ++++++++++++++++++++++++++++
README.md | 2 ++
3 files changed, 61 insertions(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..c3f248deab
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,31 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+ paths-ignore:
+ - '**.md'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ emacs_version:
+ - 25.1
+ - 25.3
+ - 26.1
+ - 26.3
+ - 27.1
+ - 27.2
+ - 28.1
+ - 28.2
+ - snapshot
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+
+ - uses: actions/checkout@v3
+ - name: Run tests
+ run: make
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..8e33e4e853
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+EMACS ?= emacs
+
+# A space-separated list of required package names
+NEEDED_PACKAGES = package-lint
+
+INIT_PACKAGES="(progn \
+ (require 'package) \
+ (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
+ (package-initialize) \
+ (dolist (pkg '(${NEEDED_PACKAGES})) \
+ (unless (package-installed-p pkg) \
+ (unless (assoc pkg package-archive-contents) \
+ (package-refresh-contents)) \
+ (package-install pkg))) \
+ )"
+
+all: compile package-lint clean-elc
+
+package-lint:
+ ${EMACS} -Q --eval ${INIT_PACKAGES} --eval '(setq
package-lint-main-file "haml-mode.el")' -batch -f package-lint-batch-and-exit
*.el
+
+compile: clean-elc
+ ${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile
*.el
+
+clean-elc:
+ rm -f f.elc
+
+.PHONY: all compile clean-elc package-lint
diff --git a/README.md b/README.md
index 3f6527302c..dd3d49e310 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
[![MELPA
Status](http://melpa.org/packages/haml-mode-badge.svg)](http://melpa.org/#/haml-mode)
[![MELPA Stable
Status](http://stable.melpa.org/packages/haml-mode-badge.svg)](http://stable.melpa.org/#/haml-mode)
+[![Build
Status](https://github.com/nex3/haml-mode/workflows/CI/badge.svg)](https://github.com/nex3/haml-mode/actions)
+
# haml-mode for Emacs
`haml-mode` is an Emacs major mode for use with
- [nongnu] elpa/haml-mode updated (45a0b23db0 -> fe83c65c1f), ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode 6e93932061 2/4: Add simple CI with Actions (byte-compile, package-lint),
ELPA Syncer <=
- [nongnu] elpa/haml-mode 7a24193cc0 3/4: Depend on Emacs 24.1, not 24, to appease package-lint, ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode fe83c65c1f 4/4: Merge pull request #42 from nex3/actions-ci, ELPA Syncer, 2023/06/08
- [nongnu] elpa/haml-mode f1cb847f27 1/4: Add MELPA badges, ELPA Syncer, 2023/06/08