forked from ledger/ledger-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
pull_request:
push:
paths-ignore:
- '**/*.md'
- '**/*.org'
- '.dir-locals.el'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
emacs_version: [25.1, 25.2, 25.3, 26.1, 26.2, 26.3, 27.1, snapshot]
include:
- emacs_version: snapshot
ledger_version: snapshot
steps:
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: purcell/[email protected]
with:
version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v2
- name: Install ledger
run: nix-env -iA ${{ matrix.ledger_version || 'stable' }} -f tools
# Byte compilation is known to fail in Emacs < 26.1 due to ledger-flymake.el, which should
# be packaged separately
- name: Byte compilation
run: emacs --eval "(setq byte-compile-error-on-warn (>= emacs-major-version 26))" -L . --batch -f batch-byte-compile *.el
- name: Tests
run: make -C test test-batch
- name: Checkdoc
run: make -C test checkdoc