emacs-config/.github/workflows/test.yml

42 lines
931 B
YAML
Raw Permalink Normal View History

2021-03-14 14:16:18 -04:00
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- '27.1'
- 'snapshot'
include:
- emacs_version: 'snapshot'
allow_failure: true
steps:
- uses: actions/checkout@v2
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
2021-03-14 14:38:47 -04:00
- name: Set up emacs config
2021-03-14 14:16:18 -04:00
run: |
2021-03-14 14:42:21 -04:00
mkdir ~/.emacs.d
cp -a -r etc local straight init.el ~/.emacs.d/
2021-03-14 14:38:47 -04:00
- name: Test initialization and build
run: |
emacs -batch -l "~/.emacs.d/init.el"
2021-03-14 14:16:18 -04:00
2021-03-14 14:56:01 -04:00
- name: Verify dependencies
2021-03-14 14:16:18 -04:00
run: |
2021-04-25 20:12:26 -04:00
emacs -batch -l ~/.emacs.d/init.el --eval '(assert (nd/verify-required-packages))'
- name: Test org-x
run: >
emacs -batch
-l ~/.emacs.d/init.el
-l ~/.emacs.d/local/lib/org-x/test/org-x-test.el
-f buttercup-run
2021-03-14 14:16:18 -04:00