Skip to content

Commit

Permalink
ci: improve ci (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored May 10, 2022
1 parent 97ff36b commit f877659
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,34 @@ name: CI
on: [push, pull_request]

jobs:
unix-test:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
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: purcell/setup-emacs@master
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

- name: Run tests
run: make ci

windows-test:
runs-on: windows-latest
strategy:
matrix:
emacs-version:
- 26.1
- 26.2
- 26.3
- 27.1
- snapshot

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'

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

- name: Run tests
run: make ci
15 changes: 15 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(package "lsp-sourcekit"
"0.1"
"sourcekit-lsp client for lsp-mode")

(package-file "lsp-sourcekit.el")

(files "*.el")

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

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

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
24 changes: 12 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
.PHONY: all compile clean

EMACS ?= emacs
CASK ?= cask
EASK ?= eask

LSP-SOURCEKIT-GENERAL := lsp-sourcekit.el

all:
$(CASK) build
ci: clean build compile checkdoc lint

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

compile:
@echo "Compiling..."
@$(CASK) $(EMACS) -Q --batch \
-l test/windows-bootstrap.el \
-L . \
--eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile *.el
@$(EASK) compile

ci: CASK=
ci: clean compile
checkdoc:
$(EASK) checkdoc

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

clean:
rm -rf .cask *.elc
$(EASK) clean-all

0 comments on commit f877659

Please sign in to comment.