Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: tests

on:
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- "29.1"
- "30.1"

steps:
- uses: actions/checkout@v6

- name: Set up Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- name: Install ripgrep
run: sudo apt-get update && sudo apt-get install -y ripgrep

- name: Show tool versions
run: |
emacs --version
rg --version

- name: Run all tests
run: emacs --batch -Q --eval "(setq load-prefer-newer t)" -L . -l tests/run-tests.el
20 changes: 20 additions & 0 deletions tests/run-tests.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
;;; run-tests.el --- Load and run all Grove tests -*- lexical-binding: t -*-

;; Copyright 2026 Guilherme Thomazi Bonicontro

;;; Commentary:

;; Loads every *-test.el file in this directory, then runs the full ERT suite.

;;; Code:

(require 'ert)

(let* ((this-file (or load-file-name buffer-file-name))
(tests-directory (file-name-directory this-file)))
(dolist (file (directory-files tests-directory t "-test\\.el\\'"))
(load file nil 'nomessage)))

(ert-run-tests-batch-and-exit)

;;; run-tests.el ends here