Skip to content

Commit

Permalink
Add Eldev and new CI file that uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyatt committed May 18, 2024
1 parent 94eb0a0 commit f2291e4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 79 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

test:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
# Add more lines like this if you want to test on different Emacs versions.
- 28.1
- 28.2
- 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
79 changes: 0 additions & 79 deletions .github/workflows/melpa.yml

This file was deleted.

8 changes: 8 additions & 0 deletions Eldev
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; -*- mode: emacs-lisp; lexical-binding: t -*-

;; Uncomment some calls below as needed for your project.
(eldev-use-package-archive 'gnu-elpa)
;(eldev-use-package-archive 'nongnu-elpa)
;(eldev-use-package-archive 'melpa)
(setq eldev-standard-excludes `(:or ,eldev-standard-excludes "plz*" "utilities/*"))
(setq checkdoc-force-docstrings-flag nil)

0 comments on commit f2291e4

Please sign in to comment.