diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..950269d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,57 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + emacs-version: + - 26.3 + - 27.2 + - 28.2 + - 29.4 + experimental: [false] + include: + - os: ubuntu-latest + emacs-version: snapshot + experimental: true + - os: macos-latest + emacs-version: snapshot + experimental: true + - os: windows-latest + emacs-version: snapshot + experimental: true + exclude: + - os: macos-latest + emacs-version: 26.3 + - os: macos-latest + emacs-version: 27.2 + + steps: + - uses: actions/checkout@v4 + + - uses: jcs090218/setup-emacs@master + with: + version: ${{ matrix.emacs-version }} + + - uses: emacs-eask/setup-eask@master + with: + version: 'snapshot' + + - name: Run tests + run: + make ci diff --git a/.gitignore b/.gitignore index de12b1e..7e450c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # ignore these extensions *.elc + +/.eask +/dist diff --git a/Eask b/Eask new file mode 100644 index 0000000..0287623 --- /dev/null +++ b/Eask @@ -0,0 +1,20 @@ +(package "helm-lsp" + "0.2" + "LSP helm integration") + +(website-url "https://github.com/emacs-lsp/helm-lsp") +(keywords "languages" "debug") + +(package-file "helm-lsp.el") + +(script "test" "echo \"Error: no test specified\" && exit 1") + +(source 'gnu) +(source 'melpa) + +(depends-on "emacs" "26.1") +(depends-on "dash" "2.14.1") +(depends-on "lsp-mode" "5.0") +(depends-on "helm" "2.0") + +(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e92a368 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +EMACS ?= emacs +EASK ?= eask + +.PHONY: clean checkdoc lint package install compile test + +ci: clean package install compile + +package: + @echo "Packaging..." + $(EASK) package + +install: + @echo "Installing..." + $(EASK) install + +compile: + @echo "Compiling..." + $(EASK) compile + +test: + @echo "Testing..." + $(EASK) test ert ./test/*.el + +checkdoc: + @echo "Run checkdoc..." + $(EASK) lint checkdoc + +lint: + @echo "Run package-lint..." + $(EASK) lint package + +clean: + $(EASK) clean all diff --git a/helm-lsp.el b/helm-lsp.el index ca8a74a..7dc2bd8 100755 --- a/helm-lsp.el +++ b/helm-lsp.el @@ -17,8 +17,8 @@ ;; Author: Ivan Yonchovski ;; Keywords: languages, debug -;; URL: https://github.com/yyoncho/helm-lsp -;; Package-Requires: ((emacs "25.1") (dash "2.14.1") (lsp-mode "5.0") (helm "2.0")) +;; URL: https://github.com/emacs-lsp/helm-lsp +;; Package-Requires: ((emacs "26.1") (dash "2.14.1") (lsp-mode "5.0") (helm "2.0")) ;; Version: 0.2 ;;; Commentary: