[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/reformatter 1dcf03da94 1/2: Add Emacs 29.1 to matrix, and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/reformatter 1dcf03da94 1/2: Add Emacs 29.1 to matrix, and only package-lint with that version |
Date: |
Sat, 4 Nov 2023 07:02:14 -0400 (EDT) |
branch: elpa/reformatter
commit 1dcf03da9441aeac9a2509c5e5fed7154dcf4042
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Add Emacs 29.1 to matrix, and only package-lint with that version
---
.github/workflows/test.yml | 13 ++++++++++++-
Makefile | 10 +++++-----
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4fa6a87ef2..e1239b94ea 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,6 +7,16 @@ on:
- '**.md'
jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: 29.1
+ - uses: actions/checkout@v2
+ - name: Run tests
+ run: make package-lint
+
build:
runs-on: ubuntu-latest
strategy:
@@ -22,6 +32,7 @@ jobs:
- 27.2
- 28.1
- 28.2
+ - 29.1
- snapshot
steps:
- uses: cachix/install-nix-action@v23
@@ -34,4 +45,4 @@ jobs:
- name: Install deps for tests
run: nix-env -i shfmt -f '<nixpkgs>'
- name: Run tests
- run: make
+ run: make compile test
diff --git a/Makefile b/Makefile
index 717f9ad603..7a51e24cfe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
EMACS ?= emacs
# A space-separated list of required package names
-NEEDED_PACKAGES = package-lint
+DEPS =
INIT_PACKAGES="(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\";) package-archives) \
(package-initialize) \
- (dolist (pkg '(${NEEDED_PACKAGES})) \
+ (dolist (pkg '(DEPS)) \
(unless (package-installed-p pkg) \
(unless (assoc pkg package-archive-contents) \
(package-refresh-contents)) \
@@ -17,13 +17,13 @@ INIT_PACKAGES="(progn \
all: compile package-lint test clean-elc
package-lint:
- ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -f
package-lint-batch-and-exit reformatter.el
+ ${EMACS} -Q --eval $(subst PACKAGES,package-lint,${INIT_PACKAGES})
-batch -f package-lint-batch-and-exit reformatter.el
test:
- ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -l reformatter.el -l
reformatter-tests.el -f ert-run-tests-batch-and-exit
+ ${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) -batch -l
reformatter.el -l reformatter-tests.el -f ert-run-tests-batch-and-exit
compile: clean-elc
- ${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile
*.el
+ ${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) -L .
-batch -f batch-byte-compile *.el
clean-elc:
rm -f f.elc