branch: elpa/page-break-lines
commit d4536b24643b4b924f6ebb9783720dec99153ba0
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>

    Add dependabot config, update CI matrix, run lint as separate job
---
 .github/dependabot.yml     | 10 ++++++++++
 .github/workflows/test.yml | 15 +++++++++++++--
 Makefile                   |  8 ++++----
 3 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000..ba29cb1dad
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,10 @@
+version: 2
+updates:
+- package-ecosystem: github-actions
+  directory: "/"
+  schedule:
+    interval: daily
+  open-pull-requests-limit: 10
+  commit-message:
+    prefix: "chore"
+    include: "scope"
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8358a4153b..a2dc98fac0 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.4
+    - uses: actions/checkout@v4
+    - name: Run tests
+      run: make package-lint
+
   build:
     runs-on: ubuntu-latest
     strategy:
@@ -20,12 +30,13 @@ jobs:
           - 27.2
           - 28.1
           - 28.2
+          - 29.4
           - snapshot
     steps:
     - uses: purcell/setup-emacs@master
       with:
         version: ${{ matrix.emacs_version }}
 
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
     - name: Run tests
-      run: make
+      run: make compile
diff --git a/Makefile b/Makefile
index 7abebe4ad4..fbd3cbbde2 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 '(PACKAGES)) \
     (unless (package-installed-p pkg) \
       (unless (assoc pkg package-archive-contents) \
         (package-refresh-contents)) \
@@ -17,10 +17,10 @@ INIT_PACKAGES="(progn \
 all: compile package-lint clean-elc
 
 package-lint:
-       ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -f 
package-lint-batch-and-exit page-break-lines.el
+       ${EMACS} -Q --eval $(subst PACKAGES,package-lint,${INIT_PACKAGES}) 
-batch -f package-lint-batch-and-exit page-break-lines.el
 
 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

Reply via email to