Add a complication check GHA

It's based on Eldev.
This commit is contained in:
Bozhidar Batsov 2022-07-18 23:19:29 +03:00 committed by Rudi Grinberg
parent 2a405226f2
commit 8149df9132
3 changed files with 36 additions and 0 deletions

34
.github/workflows/test-emacs.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Test Emacs
on:
push:
paths: ['**.el']
pull_request:
paths: ['**.el']
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
strategy:
matrix:
emacs_version: ['26.3', '27.1', '28.1', 'snapshot']
steps:
- name: Set up Emacs
uses: purcell/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
- name: Install Eldev
run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
- name: Check out the source code
uses: actions/checkout@v2
- name: Test the project
run: |
cd src/top
# eldev -p -dtT -C test --expect 100
eldev -dtT -C compile --warnings-as-errors

1
.gitignore vendored
View File

@ -3,5 +3,6 @@ _build/
*.install
*.elc
.*.swp
.eldev
/result*

1
src/top/Eldev Normal file
View File

@ -0,0 +1 @@
(eldev-use-package-archive 'melpa)