Skip to content

Commit 2ec7054

Browse files
authored
Merge pull request #10 from purescript-emacs/github-actions
Add GitHub Actions CI
2 parents bca871c + 5142453 commit 2ec7054

File tree

6 files changed

+39
-45
lines changed

6 files changed

+39
-45
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
paths-ignore:
7+
- '**.md'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
emacs_version:
15+
- 25.1
16+
- 25.2
17+
- 25.3
18+
- 26.1
19+
- 26.2
20+
- 26.3
21+
- 27.1
22+
- snapshot
23+
steps:
24+
- uses: purcell/setup-emacs@master
25+
with:
26+
version: ${{ matrix.emacs_version }}
27+
28+
- uses: actions/checkout@v2
29+
- name: Run tests
30+
run: make check

.travis.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ compile: $(ELCFILES)
4343

4444
$(ELCHECKS): check-%: %.el
4545
@$(BATCH) --eval '(when (check-declare-file "$*.el") (error "check-declare failed"))'
46-
@$(BATCH) \
47-
--eval "(setq byte-compile-error-on-warn t)" \
48-
-f batch-byte-compile $*.el
46+
@$(BATCH) -f batch-byte-compile $*.el
4947
@$(RM) $*.elc
5048
@if [ -f "$(<:%.el=tests/%-tests.el)" ]; then \
5149
if $(BATCH) --eval "(require 'ert)" 2> /dev/null; then \

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![MELPA](https://melpa.org/packages/purescript-mode-badge.svg)](https://melpa.org/#/purescript-mode)
2+
[![Build Status](https://github.com/purescript-emacs/purescript-mode/workflows/ci/badge.svg)](https://github.com/purescript-emacs/purescript-mode/actions)
3+
14
PureScript Mode for Emacs
25
----------------------
36

purescript-font-lock.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
("::" . ,(decode-char 'ucs 8759))
115115
("forall" . ,(decode-char 'ucs 8704)))
116116
"A set of symbol compositions for use as `prettify-symbols-alist'."
117-
:group 'purescript)
117+
:group 'purescript
118+
:type '(repeat (cons string character)))
118119

119120
;; Use new vars for the font-lock faces. The indirection allows people to
120121
;; use different faces than in other modes, as before.
@@ -361,6 +362,8 @@ that should be commented under LaTeX-style literate scripts."
361362
(defvar purescript-font-lock-seen-docstring nil)
362363
(make-variable-buffer-local 'purescript-font-lock-seen-docstring)
363364

365+
(defvar purescript-literate)
366+
364367
(defun purescript-syntactic-face-function (state)
365368
"`font-lock-syntactic-face-function' for PureScript."
366369
(cond

purescript-indent.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ TYPE is either 'guard or 'rpurs."
13951395
(let ((eqn (caar eqns-start)))
13961396
(setq lastpos (if (cdr eqns-start)
13971397
(save-excursion
1398-
(goto-char (caadr eqns-start))
1398+
(goto-char (cl-caadr eqns-start))
13991399
(purescript-indent-forward-line -1)
14001400
(line-end-position))
14011401
end-block))

0 commit comments

Comments
 (0)