Skip to content

Commit da7c25d

Browse files
committed
Add CI
1 parent 7cf6494 commit da7c25d

File tree

5 files changed

+92
-13
lines changed

5 files changed

+92
-13
lines changed

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
emacs-version:
19+
- 26.1
20+
- 26.2
21+
- 26.3
22+
- 27.1
23+
- 27.2
24+
- 28.1
25+
- snapshot
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- uses: jcs090218/setup-emacs@master
31+
with:
32+
version: ${{ matrix.emacs-version }}
33+
34+
- uses: actions/setup-node@v1
35+
with:
36+
node-version: '16'
37+
38+
- uses: emacs-eask/setup-eask@master
39+
with:
40+
version: 'snapshot'
41+
42+
- name: Run tests
43+
run: 'make ci'

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
.cask
1+
.eask
2+
/dist
23
*.elc

Cask

-12
This file was deleted.

Eask

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(package "lsp-haskell"
2+
"1.0"
3+
"Haskell support for lsp-mode")
4+
5+
(package-file "lsp-haskell.el")
6+
7+
(source "gnu")
8+
(source "melpa")
9+
10+
(depends-on "emacs" "24.3")
11+
(depends-on "lsp-mode")
12+
13+
(development
14+
(depends-on "f")
15+
(depends-on "ecukes")
16+
(depends-on "ert-runner")
17+
(depends-on "el-mock")
18+
(depends-on "spinner")
19+
(depends-on "haskell-mode"))
20+
21+
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432

Makefile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
SHELL=/usr/bin/env bash
2+
3+
EMACS ?= emacs
4+
EASK ?= eask
5+
6+
ci: build compile checkdoc lint
7+
8+
build:
9+
$(EASK) package
10+
$(EASK) install
11+
12+
compile:
13+
@echo "Compiling..."
14+
$(EASK) compile
15+
16+
checkdoc:
17+
$(EASK) checkdoc
18+
19+
lint:
20+
@echo "package linting..."
21+
$(EASK) lint
22+
23+
clean:
24+
$(EASK) clean-all
25+
26+
.PHONY : test compile checkdoc lint clean tag

0 commit comments

Comments
 (0)