Skip to content

Commit

Permalink
Switch from travis CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Sep 8, 2023
1 parent 35a41c7 commit 2e204cf
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 33 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,25 @@
name: CI

on:
pull_request:
push:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- 27.2
- 28.2
- 29.1
- snapshot
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- uses: actions/checkout@v4
- name: Run tests
run: |
make test
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
/.cask/
*.elc
*~
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Cask

This file was deleted.

12 changes: 5 additions & 7 deletions Makefile
Expand Up @@ -7,30 +7,28 @@ else
EMACS ?= emacs
endif

CASK ?= cask

LOADPATH = -L .
LOAD_HELPER = -l test/test-helper.el

test:
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
$(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/coffee-command.el \
-l test/coffee-imenu.el -l test/coffee-highlight.el \
-l test/coffee-private.el -l test/coffee-syntax.el \
-f ert-run-tests-batch-and-exit

test-highlight:
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
$(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/coffee-highlight.el \
-f ert-run-tests-batch-and-exit

test-syntax:
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
$(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/coffee-syntax.el \
-f ert-run-tests-batch-and-exit

test-command:
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
$(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/coffee-command.el \
-f ert-run-tests-batch-and-exit

Expand All @@ -40,6 +38,6 @@ test-imenu:
-f ert-run-tests-batch-and-exit

test-private:
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
$(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/coffee-private.el \
-f ert-run-tests-batch-and-exit
6 changes: 3 additions & 3 deletions README.md
@@ -1,6 +1,6 @@
CoffeeScript Major Mode
=======================
[![travis badge][travis-badge]][travis-link] [![melpa badge][melpa-badge]][melpa-link] [![melpa stable badge][melpa-stable-badge]][melpa-stable-link]
[![github_actions badge][github-actions-badge]][github-actions-link] [![melpa badge][melpa-badge]][melpa-link] [![melpa stable badge][melpa-stable-badge]][melpa-stable-link]

An Emacs major mode for [CoffeeScript][cs] and [IcedCoffeeScript][ics].

Expand Down Expand Up @@ -195,8 +195,8 @@ Please file bugs at <https://github.com/defunkt/coffee-mode/issues>
[elpa]: https://elpa.gnu.org/
[melpa]: https://melpa.org/
[melpa-stable]: https://stable.melpa.org/
[travis-badge]: https://travis-ci.org/syohex/coffee-mode.svg
[travis-link]: https://travis-ci.org/syohex/coffee-mode
[github-actions-badge]: https://github.com/defunk/coffee-mode/workflows/CI/badge.svg
[github-actions-link]: https://github.com/defunk/coffee-mode/actions
[melpa-link]: https://melpa.org/#/coffee-mode
[melpa-stable-link]: https://stable.melpa.org/#/coffee-mode
[melpa-badge]: https://melpa.org/packages/coffee-mode-badge.svg
Expand Down
2 changes: 1 addition & 1 deletion test/coffee-highlight.el
Expand Up @@ -1066,7 +1066,7 @@ testMethod = (id) ->
(should (face-at-cursor-p 'font-lock-constant-face))

(forward-cursor-on "#")
(should (face-at-cursor-p 'font-lock-comment-face))
(should (face-at-cursor-p 'font-lock-comment-delimiter-face))

(forward-cursor-on "Broken")
(should (face-at-cursor-p 'font-lock-comment-face))))
Expand Down

0 comments on commit 2e204cf

Please sign in to comment.