forked from seagle0128/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.4 KB
/
ci.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
name: CI
on:
push:
branches:
- master
- feat/modern-completion
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
emacs-version: [27.2, 28.2, 29.1]
experimental: [false]
include:
- emacs-version: snapshot
experimental: true
steps:
- name: setenv
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- name: test
run: |
export HOME="/home/runner/work/.emacs.d"; \
mkdir -p $HOME/.emacs.d/elpa/gnupg && gpg --homedir $HOME/.emacs.d/elpa/gnupg --receive-keys 066DAFCB81E42C40; \
cp -f $HOME/.emacs.d/custom-example.el $HOME/.emacs.d/custom.el; \
emacs -q --batch \
--eval "(message \"Testing...\")" \
--eval "(let ((early-init-file (locate-user-emacs-file \"early-init.el\"))
(user-init-file (locate-user-emacs-file \"init.el\")))
(and (>= emacs-major-version 27) (load early-init-file))
(load user-init-file))" \
--eval "(message \"Testing...done\")"