Skip to content

Commit

Permalink
[ADD] Eldev with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Nov 26, 2024
1 parent fa0d781 commit 977b71e
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}

strategy:
matrix:
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
emacs_version: [
'24.1',
# '25.1', '25.2', '25.3',
# '26.1', '26.2', '26.3',
# '27.1', '27.2',
# '28.1', '28.2',
# '29.1', '29.2', '29.3',
# 'snapshot'
]

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
with:
fetch-depth: 0

- name: Test the project
run: |
eldev \
--debug \
--packaged \
--trace \
--time \
--color=always \
test --expect 20
- name: Ensure clean byte-compilation
run: |
eldev \
--debug \
--trace \
--time \
--color=always \
compile \
--warnings-as-errors
- name: Ensure that copyright notices are up-to-date
run: |
eldev \
--verbose \
--debug \
--packaged \
--trace \
--time \
--color=always \
--backtrace-on-abort \
doctor --all-tests

0 comments on commit 977b71e

Please sign in to comment.