-
Notifications
You must be signed in to change notification settings - Fork 47
53 lines (48 loc) · 1.46 KB
/
run-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
name: Run Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{matrix.version == 'snapshot'}}
strategy:
matrix:
# '25.1' fails for some reason even though `make lint_in_docker` succeeds.
# swift-mode-beginning-of-defun.el:1081: All variables and subroutines might as well have a documentation string
# swift-mode-beginning-of-defun.el:1135: All variables and subroutines might as well have a documentation string
version:
- '29.1'
- '28.2'
- '28.1'
- '27.2'
- '27.1'
- '26.3'
- '26.2'
- '26.1'
- '25.3'
- '25.2'
- '24.5'
- '24.4'
- 'snapshot'
env:
ELDEV_DIR: .eldev
ELDEV: .eldev/bin/eldev
steps:
- uses: actions/checkout@v3
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.version }}
- name: Install Eldev
run: |
mkdir -p $ELDEV_DIR/bin
curl -fsSL https://raw.github.com/doublep/eldev/master/bin/eldev > $ELDEV_DIR/bin/eldev
chmod a+x $ELDEV_DIR/bin/eldev
- name: Run linters
# Indentation rules changed since 29.
if: ${{ startsWith(matrix.version, '29.') }}
run: find ./*.el test/*.el '!' -name '*autoloads.el' -exec ${ELDEV} lint '{}' '+'
- name: Run tests
run: ./scripts/run_test.sh