-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ahyatt/eldev
Add eldev and fix lint issues
- Loading branch information
Showing
5 changed files
with
117 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
environment: Continuous Integration | ||
strategy: | ||
matrix: | ||
emacs_version: | ||
# 28.1 and 28.2 should be tested, but they are not working for reasons | ||
# I haven't figured out yet, and I haven't been able to test manually | ||
# for other reasons I haven't figured out yet. | ||
- 29.1 | ||
- 29.2 | ||
steps: | ||
- name: Set up Emacs | ||
uses: jcs090218/setup-emacs@master | ||
with: | ||
version: ${{matrix.emacs_version}} | ||
|
||
- name: Install Eldev | ||
uses: emacs-eldev/setup-eldev@v1 | ||
|
||
- name: Check out the source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Lint the project | ||
run: | | ||
eldev -p -dtT lint | ||
- name: Test the project | ||
run: | | ||
eldev -p -dtT test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; -*- mode: emacs-lisp; lexical-binding: t -*- | ||
|
||
(eldev-use-package-archive 'melpa) | ||
(eldev-use-plugin 'maintainer) | ||
(eldev-add-extra-dependencies 'test '(:package emacsql)) | ||
(eldev-add-extra-dependencies 'test '(:package kv)) | ||
(eldev-add-extra-dependencies 'emacs '(:package emacsql)) | ||
(eldev-add-extra-dependencies 'emacs '(:package kv)) | ||
|
||
;; To both deal with emacsql and built-in sqlite in various versions, we need to | ||
;; weird things that package linting doesn't like. So we disable this specific | ||
;; kind of linting. | ||
(add-to-list 'eldev-lint-disabled 'package) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters