-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (60 loc) · 2.16 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
64
65
66
67
68
69
70
71
name: CI
on:
push:
paths-ignore: ['**.md', '**.adoc']
pull_request:
paths-ignore: ['**.md', '**.adoc']
jobs:
test:
runs-on: ${{matrix.os}}
continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
strategy:
matrix:
os: [ubuntu-latest]
emacs_version: ['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']
# include:
# Disabled for now: takes forever on default GitHub runners.
# Either they use particularly slow machines or (I suspect
# more likely) Emacs has some problems communicating with
# processes on that OS, resulting in delays.
# - os: macos-latest
# emacs_version: '29.3'
# Disabled for now: it looks like on fails on GitHub for
# unrelated reasons due to mishandling of Hebrew or Chinese
# characters. The fault appears to be unrelated to
# `datetime'. I even reran a previously passing test
# (i.e. with zero changes, only whatever GitHub has changed
# in their setup in the meantime) and it failed too.
# - os: windows-latest
# emacs_version: '29.3'
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: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Check out the source code
uses: actions/checkout@v4
with:
# To make automated copyright notice check below work. Can this be optimized?
fetch-depth: 0
- name: Test the project
run: |
eldev -p -dtT -C test --expect 20
- name: Ensure clean byte-compilation
run: |
eldev -dtT -C compile --set all --warnings-as-errors
- name: Ensure that copyright notices are up-to-date
run: |
eldev -p -dvQTC doctor up-to-date-copyright --all-tests