-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (54 loc) · 1.48 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Tests
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- '28.1'
- '28.2'
- '29.1'
- 'release-snapshot'
- 'snapshot'
include:
- emacs_version: 'snapshot'
allow_failure: true
- emacs_version: 'release-snapshot'
allow_failure: true
steps:
- uses: actions/checkout@v3
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: conao3/setup-cask@master
with:
version: 'snapshot'
- name: Install dependencies
run: '$HOME/.cask/bin/cask install'
- name: Byte compile files
run: '$HOME/.cask/bin/cask build'
- name: Run tests
if: matrix.allow_failure != true
run: '$HOME/.cask/bin/cask exec ert-runner'
- name: Package lint
run: 'cask emacs -Q -batch -f package-lint-batch-and-exit *.el || true'
- name: Checkdoc
run: |
for FILE in *.el
do cask emacs -batch \
-eval "(setq checkdoc-verb-check-experimental-flag nil)" \
-eval "(checkdoc-file \"${FILE}\")"
done
- name: Run tests (allow failure)
if: matrix.allow_failure == true
run: $HOME/.cask/bin/cask exec ert-runner || true