Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Apr 30, 2022
1 parent 675a570 commit 1c90050
Show file tree
Hide file tree
Showing 4 changed files with 86 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
14 changes: 14 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(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")
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 1c90050

Please sign in to comment.