branch: externals/yaml
commit ff56e884c9fcbe3a6fc8af71ca6b205d8fbc68e8
Author: Danny Willems <[email protected]>
Commit: Danny Willems <[email protected]>

    ci: byte-compile across more Emacs versions with warnings as errors
    
    The existing workflow only ran tests on Emacs 27.2. Add a compile job
    that byte-compiles (warnings as errors) on the minimum supported Emacs
    (25.1), the latest stable (30.1), and the development snapshot, so newly
    obsolete constructs are caught. Bump checkout to v5 and add dependabot
    for the actions.
---
 .github/dependabot.yml     |  6 ++++++
 .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++--------
 2 files changed, 36 insertions(+), 8 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000..ca79ca5b4d
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+  - package-ecosystem: github-actions
+    directory: /
+    schedule:
+      interval: weekly
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e920f2fec3..ad23ae3778 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -2,13 +2,35 @@ name: CI
 on: [push, pull_request]
 
 jobs:
-  build:
+  test:
     runs-on: ubuntu-latest
     steps:
-    - uses: purcell/setup-emacs@master
-      with:
-        version: 27.2
-    - uses: actions/checkout@v2
-    - name: Run tests
-      run: |
-        emacs -Q --batch -L . -l *-tests.el -f ert-run-tests-batch-and-exit
+      - uses: actions/checkout@v5
+      - uses: purcell/setup-emacs@master
+        with:
+          version: 27.2
+      - name: Run tests
+        run: |
+          emacs -Q --batch -L . -l *-tests.el \
+            -f ert-run-tests-batch-and-exit
+
+  compile:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        # Minimum supported (Package-Requires) + latest stable + snapshot.
+        emacs_version:
+          - '25.1'
+          - '30.1'
+          - snapshot
+    steps:
+      - uses: actions/checkout@v5
+      - uses: purcell/setup-emacs@master
+        with:
+          version: ${{ matrix.emacs_version }}
+      - name: Byte-compile (warnings as errors)
+        run: |
+          emacs -Q --batch -L . \
+            --eval '(setq byte-compile-error-on-warn t)' \
+            -f batch-byte-compile yaml.el yaml-tests.el

Reply via email to