-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (51 loc) · 1.22 KB
/
check.yaml
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: check
on:
pull_request:
push:
branches:
- master
tags:
- "v*"
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- 29.2
- 29.1
- 28.2
- 27.2
ignore_warnings:
- false
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
with:
just-version: 1.10.0
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: cask/setup-cask@v1
with:
version: 0.9.0
- uses: leotaku/elisp-check@v1.3
with:
file: "justl.el"
check: melpa
ignore_warnings: ${{ matrix.ignore_warnings }}
warnings_as_errors: false
- name: Run tests
run: |
emacs --version
cask install
cask build
mv test/justfile ./justfile
cask emacs --batch -L . -L test -f batch-byte-compile $(cask files)
cask emacs --batch -L . -L test -l test/justl-test.el -f ert-run-tests-batch-and-exit
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true