Skip to content

Commit

Permalink
Merge pull request #111 from jcs-PR/ci-eask
Browse files Browse the repository at this point in the history
Add CI using Eask
  • Loading branch information
yyoncho authored May 10, 2022
2 parents 675a570 + 7092683 commit ae74a39
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version:
- 26.1
- 26.2
- 26.3
- 27.1
- 27.2
- 28.1
- snapshot

steps:
- uses: actions/checkout@v2

- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

- uses: actions/setup-node@v1
with:
node-version: '16'

- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'

- name: Run tests
run: 'make ci'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.eask
/dist
*.elc
16 changes: 16 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(package "ccls"
"0.1"
"ccls client for lsp-mode")

(package-file "ccls.el")

(files "*.el")

(source "gnu")
(source "melpa")

(depends-on "emacs" "25.1")
(depends-on "lsp-mode")
(depends-on "dash")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
SHELL=/usr/bin/env bash

EMACS ?= emacs
EASK ?= eask

ci: build compile checkdoc lint

build:
$(EASK) package
$(EASK) install

compile:
@echo "Compiling..."
$(EASK) compile

checkdoc:
$(EASK) checkdoc

lint:
@echo "package linting..."
$(EASK) lint

clean:
$(EASK) clean-all

.PHONY : test compile checkdoc lint clean tag

0 comments on commit ae74a39

Please sign in to comment.